Question: Q5) [9 pts] Write a program and define a class named Person. The data members of that class are: (Id, Name, DressColor, Length). Another class
Q5) [9 pts] Write a program and define a class named Person. The data members of that class are: (Id, Name, DressColor, Length). Another class called Employee must be created with data members inherited from Pearson class, in addition to new members (Salary, Department). Define two Employees in main function and set all the data members using function called Assign. And print the name of the taller Employee among the two employees.
with c++ object oriented programming
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
