My issue is creating the interface payable and making it compile properly. I have to modify an example out of the book such that is shows polymorphism using an different interface called Payable.
This is what I have for my interface:
interface Payable
{
//-----------------------------------------------------------------
// Creates a staff of employees for a firm and pays them.
//-----------------------------------------------------------------
void payday();
Employee emp = new Employee();
emp.pay();
}
The hierarchy is :
Firm-Staff--StaffMember+---Employee+----Executive+-----Hourly+---Volunteer.``Am I even remotely close to doing this right?Thank you for the help!