Question: Exercise 2 - Array Of Objects ( 5 Marks ) Write the following java application: Create the class Employee ( Employee . java ) .
Exercise Array Of Objects Marks
Write the following java application:
Create the class Employee Employeejava It has a nane String positon String and salary double Create the default and initialization constructors, setters, getters, and tostring method.
Create a class Company Companyjava It has a name String and an array of Employee objects. Create an initialization constructor that takes only a String for the company name.
In the Company class, create a method "fillemployeeArray
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
