Three level hierarchies of classes, polymorphic and virtual functions

closed account (ENvXoG1T)
So I have this challenge question I am working on, and I am completely lost. How would you solve this?

__

Design and Develop a program with three level hierarchies of classes to maintain personal files for HR department in a university. There are two categories of people in the university – staff and students. A special category of “Staff” members are executives.
The top level is represented by the class “person” to maintain general information: name, sex, date of birth, address, phone(s).
Second level is composed by the two classes “students” and “staff”, both inherits person, and maintain data about:
“students” – major, standing and class;
“staff” – department, year of joining the university and position.
Third level “executives” inherits “staff” and includes data regarding the department managed by the executive.
You have to develop separate forms to input and output data for every person in the university by applying a polymorphic functions. Pointers to all (e,g, 20) members of the university, in different categories of the personnel, have to be stored in a single array. Tip: Function “input” and “output” are virtual and serve for entering and showing data maintain by the class.
___

Thanks for your input. :)
You shouldn't inherit from `person'. Think what will happen with the teacher assistants (¿is staff or student?)

Besides that you've got a recipe ¿what's the matter?
Topic archived. No new replies allowed.