Question: Write code using Java Assignment # 15 Assigned: Thursday,9 November 2017 Due: Wednesday, 15 November 2017 Points: 20 Write an error- free Java program to
Assignment # 15 Assigned: Thursday,9 November 2017 Due: Wednesday, 15 November 2017 Points: 20 Write an error- free Java program to do the following things Implement a class called Individual. An individual has a name, marital status and a birth year. Make a Class Employee that inherits from Individual. An employee has a position (eg, engineer"), an hourly wage rte (e.g., 10.50) and the number of hours worked per week. Write the class declarations for Individual and Employee The main) module is shown below. You must write the class definitions, constructor(s) and method(s) to make the program work. The output from the given main is shown after main. Your output can be formatted differently (hopefully a better format) but the same information must be displayed. Remember to put the usual header at the top of the program and to submit via Canvas. Main code 7 public static void main (String arg) Individual first = new Individual(); 10 Individual ("Julia", "married", 1967) 11 Employee empol = new Employee ("Joe Smith", "married", 1982); 12 13 14 15 1956) 16 50); Individual second = new Employee emp02 = new Employee(); first.display first.set ("Tom Hanks", "married", emp01.set_employee ("lawyer", 19.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
