Description: Design a base class Person. Saved by such personnel in the most basic information: name (Name), age (Age) and gender (Gender). And then use the class derived from labor, human Worker and student class Student, which add their own features, such as the Student class to add the following information: faculty (department), profession (speciality) and school ID (number) and so on, in the Worker class to add the following information: department (department) and work (job) and so on. Finally, university students, since trade unions are not only students, but also in the community or workers, so need to have two features in the property. So these two derived on the basis of the base class to derive another class students WorStu, not only have the Worker' s attributes, but also with the Student attributes.
To Search:
File list (Check if you may need any files):
person.cpp