AP CSA - Advanced Placement Computer Science A Practice Test
AP CSA Inheritance and Polymorphism 3
What is a 'has-a' relationship in OOP (as opposed to 'is-a')?
Select your answer
A
Composition — one class contains a reference to another class
B
Inheritance — one class extends another
C
Overriding — one class replaces a method
D
Abstraction — hiding implementation details
Hint