0
Why to do inheritance if we can make objects of a class in othet classes?
2 Answers
0
Hmm I don't understand what you have written. Inheritance is for cleaner code and for time saving. You have to write all components in base class and now you inherits from that class instead of copying all to those classes.
0
instead of using inheritance via visibility modes , can't we just make objects of a class in other class as data members of the class?