designing classes and objects in .net for a restaurant assignment
Posted
by
Dell Boy
on Stack Overflow
See other posts from Stack Overflow
or by Dell Boy
Published on 2012-11-01T10:59:07Z
Indexed on
2012/11/01
11:00 UTC
Read the original article
Hit count: 239
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
© Stack Overflow or respective owner