- Category:
- Console
- Tags:
-
[WORD]
- File Size:
- 4kb
- Update:
- 2013-01-07
- Downloads:
- 0 Times
- Uploaded by:
- 王莹
Description: Teacher Class Teacher and cadres class of its Cadre are defined using multiple inheritance to derive from two classes a new class Teacher_Cadre (teachers Chairman cadres class). Requirements: (1) in the two base classes include name, age, sex, address, telephone and data members. (2) Teacher class also contains data members titles title Cadre class also contains data members positions POST wage WAGE also Teacher_Cadre class contains data members. (3) the names of the two base class, age, gender, address, telephone and data members with the same name, specify the scope, access to such data members. (4) member functions defined outside the class member function declaration in the class body. (5) in the derived class Teacher_Cadre member function show the Teacher class display function is called, the output name, age, gender, address, telephone number, then the cout statement output positions and wages.
To Search:
File list (Check if you may need any files):
Teacher_Cadre.doc