In the above program student information is a derived class from student parents and student marks is derived class from student information. Std is a object belongs to student marks class. The object std can access the member functions of classes student marks, student information and student parents.