Question: In the Store class, declare the following private fields: integer numEmployees integer yearsOpen and define the following public methods: setNumEmployees ( ) has one integer
In the Store class, declare the following private fields:
integer numEmployees
integer yearsOpen
and define the following public methods:
setNumEmployees has one integer parameter and assigns the numEmployees field with the parameter.
setYearsOpen has one integer parameter and assigns the yearsOpen field with the parameter.
Ex: If the input is then the output is:
Number of employees:
Years open:
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
