2079 7

BIT153 ยท 2079 ยท 5 marks

Differentiate between aggregation and inheritance. Why do we need virtual base class?

Differentiate between aggregation and inheritance. Why do we need virtual base class? [5]

Object Oriented ProgrammingChapter 6: Inheritance and PolymorphismAggregation versus inheritance

--- Feature Aggregation Inheritance --------- Relationship "Has-a" relationship "Is-a" relationship Nature One class contains an object of another class as a member One class derives properties and behaviors from another class Code Reuse Achieved by using objects of existing classes Achieved by e...