Qualifier Classes and InheritanceThe following program explains the behavior of qualifier classes and the classes declared within them with inheritance.
11.28 Write a program to create derived class from the qualifier class.
x = 4 y =7 z = 1
Explanation: In the above program, the class B is defined inside the class A. The class A is a qualifier class of class B. The class C is inherited from the classes A and B. In the statement class C: public A, A::B, class C is inherited from A and B. To access the class B, it is preceded by the qualifier class A and the scope access operator. If we mention only class A, the class B will not be considered for inheritance. Similarly, if we mention only class B, the qualifier class A will not be considered for inheritance.