Multiple Inheritance from two derived classes

后端 未结 5 1297
清酒与你
清酒与你 2020-11-30 08:55

I have an abstract base class which acts as an interface.

I have two \"sets\" of derived classes, which implement half of the abstract class. ( one \"set\" defines t

5条回答
  •  隐瞒了意图╮
    2020-11-30 09:22

    I found a good and simple example at the below link. The article explains with an example program for calculating the area and perimeter of a rectangle. You can check it..cheers

    Multilevel Inheritance is an inheritance hierarchy wherein one derived class inherits from multiple Base Classes. Read more..

    http://www.mobihackman.in/2013/09/multiple-inheritance-example.html

提交回复
热议问题