Home > Back-end >  O c a great god help to solve, and forty minutes
O c a great god help to solve, and forty minutes

Time:09-28

1. Define a base class staff employee, employee number employeeid contains data members, name the name and age, the age;
2. Define virtual functions in the employee class print (), to show the base class member variables;
3. On the basis of the employee class derived class technican technical staff and management staff manager;
4. Kind of technican member variables defined in a new level, to pointed out the technological level of skilled workers, and reload the employee class in the virtual function print (),
Manager 5. Class member variables defined in the new post, to illustrate management staff of the management job, and reload the employee class in the virtual function print (),
6. Using the constructor for the employee, initialized technican and manager of member variables;
7. Design the main function, the function of the testing process is complete,

CodePudding user response:

Please help, urgent and so on

CodePudding user response:

Diy, the in the mind more easily
To realize the least the most basic function, then slowly expand
Himself wrote a question on BBS is better
If not, the work of a lot more, still in time, every day to see a few pages of a book, tapping point code validation, in, hold to a month get used
Stick to a period of time can have the feeling of the get gradually, the in the mind will be full
  • Related