Esempio n. 1
0
        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 = "hot dog";
            lunch2.Side   = "chips";
            lunch2.Drink  = "lemonade";

            lunch3.Entree = "pizza";
            lunch3.Side   = "salad";
            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, lunch4);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Lunch mohLunch  = new Lunch("Burger");
            Lunch mohLunch1 = new Lunch("Pizza");
            Lunch mohLunch2 = new Lunch("hot dog");

            PrintLunch(mohLunch, mohLunch1);
            Console.WriteLine();
            PrintLunch(mohLunch2);

            Console.WriteLine();
            PrintLunch(mohLunch1, mohLunch, mohLunch2);

            Console.ReadLine();
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Lunch lunch1 = new Lunch("hamburger", "fries", "cola");
            Lunch lunch2 = new Lunch("Hot dog", "chips", "lemonade");
            Lunch lunch3 = new Lunch("Pizza", "Salad", "Iced Tea");
            Lunch lunch4 = new Lunch("Tuna Sandwich", "Fruit Cup", "Water");
            Lunch lunch5 = new Lunch("Peanut Butter SW", "Cookie", "Milk");

            displayLunch(lunch1, lunch2, lunch3);
            Console.WriteLine();

            displayLunch(lunch1, lunch2, lunch3, lunch4);
            Console.WriteLine();

            displayLunch(lunch1, lunch2, lunch3, lunch4, lunch5);
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            Lunch meal1, meal2, meal3, meal4;

            meal1        = new Lunch();
            meal1.Entree = "slop";
            meal1.Side   = "droppings";
            meal1.Drink  = "sweat";

            meal2 = new Lunch("cabbage", "gruel", "vodka");
            meal3 = new Lunch("bruschetta", "fries", "beer");
            meal4 = new Lunch("calamari", "spaghetti", "red wine");

            DisplayMeals(meal1, meal2, meal4);

            DisplayMeals(meal1, meal2, meal3, meal4);

            DisplayMeals(meal4, meal3);
        }