What is the difference between aggregation and inheritance in C++?

With aggregation we create a new class, which is composed of existing classes. With inheritance we create a new class, which is based on existing class, with some modifications . subclasses.

Sizin İçin Seçtik  What is is a and has a relationship?

Leave a Reply

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