Question: Person employee project. Interfaces You will create an Interface named Employee with the following methods: setSalary getSalary setStartDate getStartDate The classes that will have to
Person employee project. Interfaces
You will create an Interface named Employee with the following methods:
setSalary
getSalary
setStartDate
getStartDate
The classes that will have to implement this interface are all those who host information of people who are employed by the University, so Faculty, Staff, and "Tuturs". The start date should match the date format for the birth date, and the salary must be a positive number. You will also have to modify your main class so that you ask the user for the additional information associated with the implementation of the interface.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
