Design realized by a method of file processing company personnel (including engineers, leadership and the chief engineer), requires to increase data, updating data and querying data, deleting data and real data function,
To design a virtual base class Staff (employees), contains a number, name and age to protect data members and relevant member function; By the Staff to derive Engineer Engineer, including professional and technical titles protection data members, as well as the related member functions; Another kind of Leader, led by the Staff to derive contain positions and departments to protect data members and relevant member function; And then by the Engineer and Leader Engineer, director of the derived class Chairman,
CodePudding user response:
Homework?
CodePudding user response:
Must be homework, will you go to 100 pieces, a bunch of people rob to help you with theCodePudding user response:
Suddenly found that there are lots of people in the BBS ask homework, design idea and not seek, but directly to the code, is terrible,