Single Inheritance

 Single Inheritance :single inheritance

  • In Single Inheritance, a class inherits only one class.
  • Whenever an object of a child is created, the constructor of its parent is called first, then its own.
  • The figure shows class B inheriting class A.
Following code illustrates the single inheritance in C++ :



Leave a Reply

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