What is a 'has-a' relationship in OOP (as opposed to 'is-a')?
-
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