Use object-oriented design to design a parent class called Employee that will receive a First name, Last
Fantastic news! We've Found the answer you've been seeking!
Question:
Use object-oriented design to design a parent class called Employee that will receive a First name, Last Name, Employee Id, and Hours Per Week. Design a child class called Production Worker that will use the existing fields of its parent class and receive extra data fields called shift that can be a number from 1 to 3 and an hourly pay rate. This class is to implement a method to print the employee's pay for a week.
a Design the class table and UML diagram.
b Write an algorithm for each operation.
c Write a test or driver algorithm to test the solution which instantiates 2 instances of an object
Related Book For
Posted Date: