What is aggregation in C++ OOP?

In C++, Aggregation is used to represent the ‘HAS-A’ relationship between two objects . It is a type of association. If in a process, one class defines another class as any entity reference then it is known as Aggregation. With the help of aggregation, you can also reuse the class.

Sizin İçin Seçtik  What is aggregation in programing?

Leave a Reply

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