Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2) Write THREE(3) classes illustrated in Figure 9 below. -mileage: double -totalSalary: double Engineer Employee -staffld: String -name: String -department: String -basicSalary: double +Employee(String,
2) Write THREE(3) classes illustrated in Figure 9 below. -mileage: double -totalSalary: double Engineer Employee -staffld: String -name: String -department: String -basicSalary: double +Employee(String, String, String) +getStaffld(): String +getName(): String +getDepartment: String +getBasicSalary(): double +Engineer(String, String, String, double, double) +getTotalSalary(): double Clerk -hourOT: double -totalSalary: double +Clerk(String, String, String, double, double) +getTotalSalary: double Figure 9: Inheritance
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Here are the three classes as described 1 Employee class java public class Employee private String s...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