I have to Design a Restaurant system using OOP in java
I make some models
Staff: is an abstract class that contained some protected data fields like name, id, etc...
Manager, Waiter, Chef classes that extend Staff class.
StaffList that contained ArrayList of staff and static method that can add new staff to ArrayList
and static method that getList that return the ArrayList is that Correct Class or not?
Food Class that has some information about food like food name, price
and food list Class that have static ArrayList of food and method that add food to this list
Order Class that has some information about the order that customer need
Table Class that have order and table id and is occupied or not
and Booking class that has information about the table that occupied and customer
then Booking List that has ArrayList of Booking class and method that can add the booking to this ArrayList
then I have an interface called IInvoice that has two methods to get overall price and getinvoiceDetailes
then class Invoice which implements Invoice interface
then IRMS interface (Restaurant Management System) that have addBooking method
and class RMS (Restaurant Management System) that interact with UI and Take booking from the user
I just need to know if that my Design is better or not and if there any enhancement to apply I'm still a student and I want to improve my OOP Design Concept
Aucun commentaire:
Enregistrer un commentaire