Question: Ansswer this question with explanation and i will appreciate Write a C++ program as specified below: I- Design a Base employee class basicInfo with data
Ansswer this question with explanation and i will appreciate
Write a C++ program as specified below: I- Design a Base employee class basicInfo with data members name, ID and gender, and one member function getBasicInfo to read employee's basic information. II- Design a Base department class deptInfo with data members deptName and jobTitle, and one member function getDeptInfo to read employee's department information. III- Design a derived class employee which inherit basicInfo and deptInfo with two member functions getEmployeeInfo and printEmployeeInfo. IV- Output sample as shown: Output Enter employee's basic info: Enter Name: Mickey Enter Emp. Id: 1121 Enter Gender: F Enter employee's department info: Enter Department Name: Testing Enter assigned work: Test Game OEM Enter time in hours to complete work: 70 Employee's Information is: Basic Information...: Name: Mickey Employee ID: 1121 Gender: F Department Information...: Department Name: Testing Assigned Work: Test Game OEM Time to complete work: 70
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
