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 .

Sizin İçin Seçtik  Does N/A mean not announced?

Leave a Reply

Your email address will not be published. Required fields are marked *

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 .

Sizin İçin Seçtik  Why is aggregation better than inheritance?

Leave a Reply

Your email address will not be published. Required fields are marked *