Question: what are the advantages of inheritance in object oriented programming?
Answer: Frequent use of code written once, i.e. code reusability., One superclass can be used for the number of subclasses in a hierarchy., No changes to be done in all base classes, just do changes in parent class only., Inheritance is used to generate more dominant objects.