Ch01 Introduction To Object-Oriented Concepts Flashcards

1
Q

object-oriented code that includes other code inside

A
Object wrappers
For example, you can take a structured module and wrap it inside an object to make it look like an object. You can also use object wrappers to wrap functionality such as security features, non-portable hardware features, and so on.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In this type of design, the attributes and behaviors are contained within a single object.

A

object-oriented design

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In this type of design, the attributes and behaviors are normally separated.

A

procedural or structured design

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When properly designed, there is no such thing as _____ _____ in an OO model.

A

global data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Having no global data provides a high amount of _____ _____ in OO systems.

A

data integrity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In OO terminology, data are referred to as _____, and behaviors are referred to as _____.

A

attributes

methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Restricting access to certain attributes and/or methods is called what?

A

data hiding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

combining the attributes and methods in the same entity

A

encapsulation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Can you design bad code just as efficiently with OO design as with any other programming methodology?

A

yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The fundamental advantage of OO programming is that the data and the operations (code) that manipulate the data are both _____ in the object.

For example, when an object is transported across a network, the entire object, including the data and behavior, goes with it.

A

encapsulated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the building blocks of an OO program?

A

Objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A program that uses OO technology is basically a collection of _____.

A

objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The _____ of an object is what the object can do.

A

behavior

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In procedural languages, behavior is defined by _____, _____, and _____.

A

procedures, functions, and subroutines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In OO programming terminology, behaviors are contained in _____.

A

methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

you invoke a method by sending a _____ to it.

A

message

17
Q

The concept of getters and setters supports the concept of _____ _____.

A

data hiding

Because other objects should not directly manipulate data within another object, the getters and setters provide controlled access to an object’s data.

18
Q

Getters and setters are sometimes called _____ methods and _____ methods, respectively.

A

accessor

mutator

19
Q

we are only showing the interface of the methods, and not the _____.

A

implementation

20
Q

The following information is all the user needs to know to effectively use the methods: 

  • The _____ of the method 
  • The _____ passed to the method 
  • The _____ _____ of the method
A
  • name
  • parameters
  • return type