Hierarchical Inheritance is a type of inheritance in which a derived class (subclass) is created from more than one base class (superclass).if a single class serves as base class for more than one derived class, it results in hierarchical inheritance.
syntax :
class Parent
{
...;
};
class Child1: Access Parent
{
----;
//child 1 derived from the parent
};
class Child2: Access Parent
{
----;
//child 2 also derived from the same parent class
};