Question: Exercise 2 - Array Of Objects ( 5 Marks ) Write the following java application: Create the class Employee ( Employee . java ) .

Exercise 2- Array Of Objects (5 Marks)
Write the following java application:
Create the class Employee (Employee.java). It has a nane (String), posit1on (String) and salary (double). Create the default and initialization constructors, setters, getters, and tostring () method.
Create a class Company (Company.java). 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(
Exercise 2 - Array Of Objects ( 5 Marks ) Write

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!