Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Donuts appleCinn = new Donuts();

            appleCinn.Filling   = "apple pie";
            appleCinn.isSpecial = false;
            appleCinn.Price     = 0.99m;
            //appleCinn.Size = "M";
            appleCinn.Type = "Filled";

            Console.WriteLine(appleCinn.Filling);


            Donuts longJohn = new Donuts();

            longJohn.Filling   = "Bavarian Creme";
            longJohn.isSpecial = true;
            longJohn.Price     = 1.25m;
            longJohn.Type      = "Filled";

            Console.WriteLine("A Long John cost about {0:C}", longJohn.Price);

            //Challenge


            Console.ReadLine();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Donuts appleCinnamon = new Donuts();

            appleCinnamon.Filling   = "apple pie";
            appleCinnamon.isSpecial = false;
            appleCinnamon.Price     = 0.99M;
            appleCinnamon.Type      = "filled";

            Console.WriteLine(appleCinnamon.Filling);

            Donuts longJohn = new Donuts();

            longJohn.Filling = "Bavarian Creme";



            Console.ReadLine();
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            Donuts appleCinn = new Donuts();

            appleCinn.Filling   = "apple pie";
            appleCinn.isSpecial = false;
            appleCinn.Price     = 0.99;
            appleCinn.Type      = "Filled";

            Console.WriteLine(appleCinn.Filling);

            Donuts longJohn = new Donuts();

            appleCinn.Filling   = "aBavarian Creme";
            appleCinn.isSpecial = true;
            appleCinn.Price     = 1.25;
            appleCinn.Type      = "Filled";

            Console.WriteLine(longJohn.Filling);
        }
Ejemplo n.º 4
0
        static void Main(string[] args)
        {
            Donuts appleCinn = new Donuts();

            appleCinn.Filling   = "apple pie";
            appleCinn.isSpecial = false;
            appleCinn.Price     = 0.99M;
            appleCinn.Type      = "Filled";

            Console.WriteLine(appleCinn.Filling);

            Donuts longJohn = new Donuts();

            longJohn.Filling   = "Bavarian Creme";
            longJohn.isSpecial = true;
            longJohn.Price     = 1.25M;
            longJohn.Type      = "Filled";
            Console.WriteLine("A longjohn costs {0:C}", longJohn.Price);


            Console.ReadLine();
        }