Question 46
In Object-Oriented Design, what is the key difference between Class Inheritance ('is-a') and Object Composition ('has-a')?
Detailed Solution
Option C is correct. Composition ('has-a') provides runtime flexibility by delegating tasks to contained objects, adhering to the principle: 'Favor object composition over class inheritance'.