What is aggregation and composition in C++?

In aggregation, the class is made up of other existing classes that may exist independent of the child class. In composition, the child class depends on its parent for existence .

Sizin İçin Seçtik  What is the main difference between aggregation and composition?

Leave a Reply

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