Esempio n. 1
0
        static void Main(string[] args)
        {
            Galaxy s8            = new Galaxy("s8", 100, "Sprint", "ding ding ding");
            Nokia  elevenHundred = new Nokia("1100", 80, "Verizon", "boop bot beep");

            s8.DisplayInfo();
            Console.WriteLine(s8.Ring());
            Console.WriteLine(s8.Unlock());

            elevenHundred.DisplayInfo();
            Console.WriteLine(elevenHundred.Ring());
            Console.WriteLine(elevenHundred.Unlock());
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Galaxy s8            = new Galaxy("s8", 100, "T-Mobile", "Dooo do doo dooo");
            Nokia  elevenHundred = new Nokia("1100", 60, "Metro PCS", "Ringgg ring ringgg");

            s8.DisplayInfo();
            Console.WriteLine(s8.Ring());
            Console.WriteLine(s8.Unlock());
            Console.WriteLine("");

            elevenHundred.DisplayInfo();
            Console.WriteLine(elevenHundred.Ring());
            Console.WriteLine(elevenHundred.Unlock());
            Console.WriteLine("");
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Galaxy S20      = new Galaxy("S20+", 98, "Verizon", "Dooo do doo dooooo");
            Nokia  fivedot3 = new Nokia("3.5", 60, "Boost Mobile", "RingRingBananaFoneee");

            S20.DisplayInfo();
            Console.WriteLine(S20.Unlock());
            Console.WriteLine(S20.Ring());
            Console.WriteLine("");

            fivedot3.DisplayInfo();
            Console.WriteLine(fivedot3.Unlock());
            Console.WriteLine(fivedot3.Ring());
            Console.WriteLine("");
        }