Question: In the class definition, initialize the private fields owner (string), numEmployees (integer), and state (string) with the default values Empty, 1, and Empty, respectively.

In the class definition, initialize the private fields owner (string), numEmployees (integer),

 and state (string) with the default values "Empty", 1, and "Empty", respectively.

In the class definition, initialize the private fields owner (string), numEmployees (integer), and state (string) with the default values "Empty", 1, and "Empty", respectively. Ex: If the input is Rob 18 VT, then the output is: Default values: Name: Empty's Bakery, Number of employees: 1, State: Empty After mutator methods: Name: Rob's Bakery, Number of employees: 18, State: VT Note: The class's print() method is called before and after the input is passed to the setters. MealEstablishment.java MealEstablishmentDirectory.java public class MealEstablishment { private /* Your code goes here */ private /* Your code goes here */ private /* Your code goes here */ public void setOwner(String mealEstablishmentOwner) { owner = mealEstablishmentOwner; } public void setNumEmployees(int mealEstablishment NumEmployees) { numEmployees = mealEstablishmentNumEmployees; } public void setState(String mealEstablishmentState) { state = mealEstablishmentState; } public void print() { System.out.println("Name: " + owner + "s Bakery, Number of employees: " + numEmployees State: " + state);

Step by Step Solution

3.42 Rating (155 Votes )

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!