Exercise - Demonstrate your knowledge of inheritance.
abstract
contract called Employee
. It should have:
idNumber
managerId
virtual
function called getAnnualCost
that returns a uint
Salaried
. It should:
Employee
annualSalary
override
function for getAnnualCost
that returns annualSalary
annualSalary
Hourly
. It should:
Employee
hourlyRate
Manager
. It should:
addReport
that can add id numbers to that arrayresetReports
that can reset that array to emptySalesperson
that inherits from Hourly
.
EngineeringManager
that inherits from Salaried
and Manager
.
Salesperson
and EngineeringManager
contracts. You don’t need to separately deploy the other contracts.
Use the following values:
Salesperson
and EngineeringManager
contracts.
InheritanceSubmission
contract that contains your other contract addresses.