Inheritance is when you create a new type of object which inherits the data and properties of another object. TDog is a class of TAnimal. Aggregation is when an object contains other objects .
What is the difference between inheritance and aggregation?
Inheritance is when you create a new type of object which inherits the data and properties of another object. TDog is a class of TAnimal. Aggregation is when an object contains other objects .