Question: Define a polymorphic method in the Firm example program we discussed in lecture 5 such that all employees can be given different vacation options depending
Define a polymorphic method in the Firm example program we discussed in
lecture such
that all employees can be given different vacation options depending on their classification. The
polymorphic method will return the number of vacation days a person has. Given all employees
a standard
number of vacation days say days Override the polymorphic method in the various
employee classes
as follows:
Regular employee will have standard vacation days
Executive employee will have additional vacation days than standard vacation days
Hourly Employee will have less vacation days than standard vacation
Volunteer will not have any vacation days
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
