method which will pass a prepared instance

dreamscape1987

New member
Joined
Nov 14, 2013
Messages
2
Programming Experience
3-5
I am currently doing an assignment for college and in the assignment I have been asked the question below.

//2. TableOrder will carry two methods for adding items from the menu:
// AddFood(), AddDrink(). Each method will pass in a prepared instance of
// either the FoodItem or DrinkItem class you previously created.
// a. It is expected that the order system will maintain a separate collection
// of drinks from food given that we will be passing the drinks orders to
// bar staff and likewise food orders to the kitchen.

I have previously created two classes to for FoodItem and DrinkItem but am struggling to grasp the concept of what the question is asking. Please help!
 
I am currently doing an assignment for college and in the assignment I have been asked the question below.

//2. TableOrder will carry two methods for adding items from the menu:
// AddFood(), AddDrink(). Each method will pass in a prepared instance of
// either the FoodItem or DrinkItem class you previously created.
// a. It is expected that the order system will maintain a separate collection
// of drinks from food given that we will be passing the drinks orders to
// bar staff and likewise food orders to the kitchen.

I have previously created two classes to for FoodItem and DrinkItem but am struggling to grasp the concept of what the question is asking. Please help!

public List<FoodItem> OrderedFood
{
get
{
return listFood;
}
}

public List<DrinkItem> OrderedDrink
{
get
{
return listDrink;
}
}

I dunno if this is correct
 
Back
Top Bottom