C++ Aggregation (HAS-A Relationship) In C++, aggregation is a process in which one class defines another class as any entity reference . It is another way to reuse the class. It is a form of association that represents HAS-A relationship.
Is a and has-a relationship in C#?
If your class inherits from the other class, it is an “IS-A” relationship. If the class is passed to the other class in the constructor this is a “HAS-A” relationship.