Is a and has a relationship in C++?

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.

Sizin İçin Seçtik  Has a relationship aggregation or composition?

Leave a Reply

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

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.

Sizin İçin Seçtik  IS-A relationship in OOP Java?

Leave a Reply

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