Ch.10 Flashcards
Object-Oriented Thinking
What does “class abstraction” do?
Separates class implementation from class use.
What is a class’s “contract” ?
Collection of public constructors/methods/fields and their descriptions.
What is “class encapsulation” ?
Details of implementation are hidden(‘encapsulated’) from the user.
Why is a class an “abstract data type” (ADT) ?
Its implementation is separated from its use and the implementation details are hidden from the user.
What is an “association” between two classes?
General binary relationship describing an activity.
i.e. A “Course” object could have associations with both “Student” and “Faculty” classes.
What is a “multiplicity” of a class involved in an association?
Specifies how many of the class’s objects are in the relationship AKA association.
What is an “aggregation” association?
Special association, represents ownership relationship between two objects.
What is a composition?
An aggregation between two objects where the owned/aggregated object is dependent on the owner/aggregating object.