Learn basic concept of c , c++ and python programming in regularcodes.com

Spread the post

Single inheritance in c++

single inheritance: derived class is allow to access the property of base class.

Base Class Derived Class

Syntax of single inheritance

Some time called, A is parent class and B is base class.

(A)Parent Class (B)Child Class

Simple example of single inheritance.


Another program for single ingeritance.


Spread the post

Recommended Posts: