Deloitte Interview Question

Inheritance vs Composition