OO Project in Ada 95
- Project Specification
- Inputs a list of employees that are salaried or wage and calculates their pay and
prints two lists: employees sorted by id, and ascending salaries only
- Project files:
- A sample project
- p3.adb contains the main program
- all_emp.ads/b contains the employee package
- a generic list package is also included
- Notes on OO
- Tagged record types can be extended with new fields
- Parameters of type Type'Class allows parameters of subclass type
- Polymorphism is only possible when using pointers