Description: Defining Teacher class Cadre of the Teacher and the class Cadre, respectively with the method of multiple inheritance by the two classes derive new Teacher_Cadre cadres (Teacher and class). Requirements:
(1) in the two base class contains name, age, gender, address, telephone, data members.
(2) the Teacher class also contains the data member title title, also contains data members in the class Cadre duty post, Teacher_Cadre class also contains the data members pay wage.
(3) of two base class name, age, gender, address, telephone, data members with the same name, on a visit to the class data members, the specified scope.
(4) in a class member function declaration in the body, outside the class define a member function.
(5) in the derived class member functions Teacher_Cadre show called the Teacher in the class the display function, the output name, age, gender, address, telephone, and then use cout statement output position and salary.
To Search:
File list (Check if you may need any files):
2.3.cpp