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