Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CSCI 1 3 0 2 Assignment 4 Due: Wednesday, July 3 Requirements Design Employee, Manager, Worker Classes that relate through inheritance: Design a class named
CSCI Assignment
Due: Wednesday, July
Requirements
Design Employee, Manager, Worker Classes that relate through inheritance:
Design a class named Employee. The class should keep the following information in fields: marks
Employee name
Employee number of digits long
Write one or more constructors and the appropriate accessor and mutator methods for the class.
Write a class named Manager that extends the Employee class. The Manager class should have fields to hold the following information: marks
Yearly salary
Write one or more constructors and the appropriate accessor and mutator methods for the class.
A method getMonthlyPay must be provided.
Write a class named Worker that extends the Employee class. The Worker class should have fields to hold the following information: marks
Hourly pay rate
Hours worked in the current week
Write one or more constructors and the appropriate accessor and mutator methods for the class.
A method getWeeklyPay must be provided.
Write a driver class EmployeeDemo.java that uses Manager and Worker objects to demonstrate Employee, Manager and Worker classes work together properly. Make sure all fields and methods in Employee, Manager, and Worker are tested. marks
Demonstrate polymorphism in EmployeeDemo.java. marks bonus
Please include your name in header comments, and follow proper programming styles such as naming, indentations, etc marks
Please create and submit screenshots of program outputs when executed. marks
Please write a README text file to discuss any issues of your program and what you have learned. marks
Submission
Your code Employeejava, Manager.java, Worker.java, EmployeeDemo.java marks
Screenshots of the outputs from your code at execution marks
README marks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started