Inheritance vs. Aggregation [closed]
It’s not a matter of which is the best, but of when to use what. In the ‘normal’ cases a simple question is enough to find out if we need inheritance or aggregation. If The new class is more or less as the original class. Use inheritance. The new class is now a subclass of … Read more