Question: Need help creating my Restaurant.java class with the skeleton code give below. Also need to create a JUnit Test RestaurantTest.java import java.util.List; public class Restaurant

Need help creating my Restaurant.java class with the skeleton code give below. Also need to create a JUnit Test RestaurantTest.java

Need help creating my Restaurant.java class with the skeleton code give below.

import java.util.List; public class Restaurant { List employees; List foodsServed; List drinksServed; public void addEmployee(Restaurant employee) { employees.add(employee); } public List foodServed() { return foodsServed; } public List drinksServed(){ return drinksServed; } public int kitchenCookTime(){ return 0; } } 

Restaurant: The restaurant as a whole is represented as an object of your Restaurant class. This is a central class that manages several of the other pieces of data and objects in the system as well as helping serve as a bridge of communication between other objects in the system. The restaurant has many attributes, such as its tables, its waiting list, and so on Be careful, though, not to place too much functionality into the Restaurant class. Follow the Information Expert pattern (aka GRASP pattern) to place functionality into other objects as appropriate when those other objects possess more of the data or knowledge needed to perform the action. If your Restaurant class is very large and the others are very small, you have designed poorly. This program is not especially concerned with the passage of time or the current time of day. For example, you don't need to worry about the time that the restaurant opens and closes, the time that a party of customers arrives to eat, the time needed to cook their food, etc. As the application is running, your code should operate under the assumption that the restaurant is currently open and will remain open while the app is executing. We will also simplify our program by assuming that the restaurant does not worry about parties who want a spot in line to eat at a later time; in other words, the restaurant does not take reservations

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!