Question: Java Program Put yourself in the following situation: You are tasked with coding a management system for a fast food chain such as Wendy's or
Java Program
Put yourself in the following situation:
You are tasked with coding a management system for a fast food chain such as Wendy's or McDonald's.
Here are the elements composing that system:
an interface named Eatable (method: beEaten)
an interface named Hireable (methods: signContract, beHired)
an interface named Payable (method: receiveMoney)
an interface named Fireable (method: beFired)
a class named Restaurant (attributes: address, numberOfPlaces; methods: hireEmployee, serveCustomer, fireEmployee)
a class named Employee (attributes: dateHired, dateFired, weeklySalary; methods: serveCustomer, takeBreak)
an abstract class named Food (attribute: temperatureInCelcius; abstract method: beServed)a class named Burger (attribute: ingredients)
a class named ChickenNugget (attribute: ketchup)
a) Code this system. Think carefully about what class will implement what interface, about what class will be a child of what class, and about the type of each attribute and method.
b) Write, and then generate, documentation for your program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
