Create three sub classes namely: programmer, admin and librarian to store bonus,
overtime and total salary for each employee
5) Each of the constructor in (4) should inherit the properties of Employee(using the super
keyword) and implement the EmployeeSalary interface.
6) Hide the properties from the parent class Employee using encapsulation principle.
7) Use getters and setters to make the properties in Employee visible and accessible to other
Comments
Leave a comment