the class named GrandFather is the top-level-base-class and it is inherited by intermediate-base-class Father, which is in turn is inherited by the class Son, by performing multilevel inheritance. Father and Mother are inherited by multiple inheritance in Son.
Besides this, the class Son also inherits another class Mother, by performing multiple inheritance (as class Son is inheriting from both Father and Mother classes at the same time), which means that -
The privateand members of class GrandFather, Father and Mother are inherited classes, such as their properties - height, eye_color, hair_color.
The publicgetters and setters functions are inherited and have become the public members in the derived class, Son.
The protected member of class Mother is also inherited as protected member in the derived class, Son.
Grandfather 1 Name (Ali) Height, Eye color, Face color Grandfather 2 Name (Asad) Height, Eye color, Face color Father Name (Raza Ali) Height, Eye color, Face color Mother Name (Rabia Asad) Height, Eye color, Face color Son Name (Ahsan Raza) Height, Eye color, Face color