designing classes and objects in .net for a restaurant assignment
- by Dell Boy
I have received an assignment at School for creating a Restaurant site. I have to use objects and classes (OOP) for my assignment. I have the foundations of the OOP in .net, but what I don't know is how can I design this assignment to be object-oriented. I don't know how to start it.
The requirement is like this:
The menu has to be saved in a database and retrieved from it. The menu is devided in appetizers, Salades, Main Meal, Pastas, Wines, Beverages, Extras,
Do I create classes like this:
Base Class: Menu
Derived classes: Appetizers, Salades, Main meal, Pastas, wines, etc.
If you have a good example about how to create classes from a Menu that will be great. You don't have to rely on the example I gave above. The menu can be anything. I can deside what the menu will contain.
thanks a lot. I am waiting for some help. Please