Ch.10 Flashcards

Object-Oriented Thinking

1
Q

What does “class abstraction” do?

A

Separates class implementation from class use.

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

What is a class’s “contract” ?

A

Collection of public constructors/methods/fields and their descriptions.

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

What is “class encapsulation” ?

A

Details of implementation are hidden(‘encapsulated’) from the user.

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

Why is a class an “abstract data type” (ADT) ?

A

Its implementation is separated from its use and the implementation details are hidden from the user.

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

What is an “association” between two classes?

A

General binary relationship describing an activity.
i.e. A “Course” object could have associations with both “Student” and “Faculty” classes.

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

What is a “multiplicity” of a class involved in an association?

A

Specifies how many of the class’s objects are in the relationship AKA association.

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

What is an “aggregation” association?

A

Special association, represents ownership relationship between two objects.

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

What is a composition?

A

An aggregation between two objects where the owned/aggregated object is dependent on the owner/aggregating object.

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