static void Main(string[] args) { Lunch lunch1, lunch2, lunch3, lunch4, lunch5; lunch1 = new Lunch(); lunch2 = new Lunch(); lunch3 = new Lunch(); lunch4 = new Lunch(); lunch5 = new Lunch(); lunch1.Entree = "Humburger"; lunch1.Side = "Fries"; lunch1.Drink = "Cola"; lunch2.Entree = "Hot Dog"; lunch2.Side = "Chips"; lunch2.Drink = "Lemonade"; lunch3.Entree = "Pizza"; lunch3.Side = "Salade"; lunch3.Drink = "Iced Tea"; lunch4.Entree = "Tuna Sandwich"; lunch4.Side = "Fruit Cup"; lunch4.Drink = "Water"; lunch5.Entree = "Peanut Butter Sandwich"; lunch5.Side = "Cookie"; lunch5.Drink = "Milk"; Display(lunch1, lunch2, lunch3); Console.WriteLine(); Display(lunch1, lunch2, lunch4); Console.WriteLine(); Display(lunch1, lunch2, lunch3, lunch4, lunch5); }
static void Main(string[] args) { Lunch lunch1, lunch2, lunch3, lunch4, lunch5; lunch1 = new Lunch(); lunch2 = new Lunch(); lunch3 = new Lunch(); lunch4 = new Lunch(); lunch5 = new Lunch(); lunch1.Entree = "Hamburger"; lunch1.Side = "Fries"; lunch1.Drink = "Cola"; lunch2.Entree = "Pizza"; lunch2.Side = "salad"; lunch2.Drink = "water"; lunch3.Entree = "steak"; lunch3.Side = "chips"; lunch3.Drink = "pint"; lunch4.Entree = "Fish"; lunch4.Side = "cookie"; lunch4.Drink = "Tea"; lunch5.Entree = "sandwich"; lunch5.Side = "Fruit salad"; lunch5.Drink = "water"; Display(lunch1, lunch2, lunch3); Console.WriteLine(); Display(lunch1, lunch2, lunch3, lunch4); Console.WriteLine(); Display(lunch1, lunch2, lunch3, lunch4, lunch5); }