Base class and derived class in Inheritance in C++

In inheritance a class inherits another class. A class which got inherited is known as base class and the one which is doing inheriting is known as derived class.  In process of inheritance the members of base class becomes members of derived class.

Syntax of inheritance:

class derived_class : access base_class {


Here, access can be public, private or protected, private being the default one.

Leave a Reply