Write an application to create a super class Employee with information first name &
last name and methods getFirstName(), getLastName() derive the sub-classes
ContractEmployee and RegularEmployee with the information about department,
designation, salary & method displayFullName() , getDepartment, getDesig(),
getsalary() and to set department name , designation and salary of the corresponding
sub-class objects respectively.
Derive sub-classes of ContractEmployee namely HourlyEmployee &
WeeklyEmployee with information number of hours & wages per hour, number of
weeks & wages per week respectively & method calculateWages() to calculate their
monthly salary. Also override getDesig () method depending on the type of contract
employee.
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments