3/23/2017 9:38:21 AM
laiba malick1 Answer
New AnswerInheritance establishes "IS A" relationship. Composition establishes "HAS A" relationship. Example-Car has an Engine and Car is a Automobile. Composition is easily achieved at runtime whereas inheritance provides its features at compile time.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message