Question: c + + The identity ( ) function in the base class should support polymorphism and should be overridden in the derived class to add
c
The identity function in the base class should support polymorphism and should be overridden in the derived class to add the information Sport: studentSport. Finally, the class StudentWorker is also derived from the Student class and includes the data member studentDept, which describes the department where the student works. The identity function for this class should report the student name, the student's social security number, and the department where the student works.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
