Podcast
Questions and Answers
Which type of relationship between two classes models a 'has a' relationship?
Which type of relationship between two classes models a 'has a' relationship?
- Aggregation / Composition (correct)
- Association
- Inheritance
- Dependency
Which type of relationship between two classes models an 'is a' relationship?
Which type of relationship between two classes models an 'is a' relationship?
- Dependency
- Association
- Aggregation / Composition
- Inheritance (correct)
Which type of relationship between two classes represents that one entity depends on the behavior of another?
Which type of relationship between two classes represents that one entity depends on the behavior of another?
- Dependency (correct)
- Aggregation / Composition
- Association
- Inheritance
Which type of relationship between two classes represents that one entity uses another as part of its behavior?
Which type of relationship between two classes represents that one entity uses another as part of its behavior?
What is the weakest type of relationship between two classes?
What is the weakest type of relationship between two classes?
Flashcards
Aggregation / Composition
Aggregation / Composition
Models a 'has a' relationship between two classes, where one class contains another.
Inheritance
Inheritance
Models an 'is a' relationship between two classes, where one class inherits properties from another.
Dependency
Dependency
Represents that one entity depends on the behavior of another.
Association
Association
Signup and view all the flashcards
Weakest type of Relationship?
Weakest type of Relationship?
Signup and view all the flashcards