Question: Java / Thank you in advance! :) - Using the UML diagram below, implement a base class Employee. - Create the child classes Developer and

Java / Thank you in advance! :)

- Using the UML diagram below, implement a base class Employee. - Create the child classes Developer and Freelancer, for the two types of objects, adding the necessary data members and constructors required to store and initialize their state. - Create a method - Override the setSalary() to calculate the earnings for a developer (on a daily basis) and for a freelancer (on an hour basis ) - Create a main program that declares: An array of 5 Developer objects and displays each ones business card. & An array of 5 Freelancer objects and displays each ones business card.

red square - private green circle - public

-Create a main program that declares: An array of 5 Developer objects and displays each ones business card. & An array of 5 Freelancer objects and displays each ones business card.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!