Question: CSCI 151 Object Oriented Programming in Java Assignment #2 1. Write a class named Employee with the following fields: Founder General Manager Office Leader Apps

 CSCI 151 Object Oriented Programming in Java Assignment #2 1. Writea class named Employee with the following fields: Founder General Manager Office

CSCI 151 Object Oriented Programming in Java Assignment #2 1. Write a class named Employee with the following fields: Founder General Manager Office Leader Apps Leader Desktop Beukes Leader Online Service Leader name idNumber department position Almin. & HR Assistant Data Researcher Data Researcher Data Researcher Finance Assistant IT Staff IT Staff IT Staff Marketing Assistant Designer Designer Designer This organizational chart shows common positions for a tech startup company. https://www.edrawsoft.com/templates/pdf/technology-startup-org-chart.pdf Encapsulation: Enforce data hiding by using private and public accordingly on the members of the class. Accessor/Mutator Methods: Write appropriate mutator methods to store values in the instance fields, and accessor methods that return values of the instance fields. What conditions might you test for in the mutator methods? Constructors: Write 2 constructors. The first constructor accepts a name and idNumber and stores them in the name and idNumber fields. The second constructor accepts a name, idNumber, department, and position and stores them in name, idNumber, department, and position field. 2. Write a tester/demo class that uses the Employee class. Use this table to keep track of information for three employees. We know all the information about the first and second employees, but only the Name and ID Number of the third employee. Refer to the chart above for names of positions. Name (First and Last) ID Number Department Position In the tester class create three Employee objects. Use the correct constructor call for each employee object. Store each row of data in the table above into the correct object

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 Databases Questions!