Explain how you would implement the same program in pascal


Problem

Implement a C++ class employee that supports a virtual method print() which prints the name and age of an employee object. Next derive a class manager which supplies its own print() method which, in addition to the employee information, prints the group number for which the manager is responsible (this is an additional field of manager). Also derive another class from employee called part time. The part time class also supplies its own print() which prints how many hours a week the employee works.

- Can you use the print of employee in manager?

- Explain how you would implement the same program in Pascal.

- Compare the object-oriented and the procedual solution in terms of maintainability. What changes are necessary in the two solutions if we need to add a new type of employee?

- In the C++ solution, how would you implement a part time manager? Does your solution allow you to implement this new class using multiple inheritance?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Explain how you would implement the same program in pascal
Reference No:- TGS02680026

Expected delivery within 24 Hours