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
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