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 1827, then the output is:
Number of employees: 18
Years open: 27

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!