Write a C++ program that implements the given class hierarchy. A Teaching Assistant is an employee and a student. Both e

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a C++ program that implements the given class hierarchy. A Teaching Assistant is an employee and a student. Both e

Post by answerhappygod »

Write a C++ program that implements the given class hierarchy.
A Teaching Assistant is an employee and a student. Both employee and student are persons.
Person is an abstract class. Person has a name, age, gender, education, language he speaks, etc. Since Person is an abstract class so make virtual functions.
Students have gpa, semester, field, etc.
Employees have salary, rank( like HOD or dean or assistant professor) etc.
Following methods should be implemented:
- Copy constructor
- Deep copy constructor
- Desctructor
- Function overriding
- Initializer List
- Deleting pointers
- Display() and setter/getter
- Make a menu driven code.
Note: Do not use strings. User char pointers instead.
use POINTERS ONLY NO OTHER STRING SHOULD BE USED
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply