Esempio n. 1
0
        static void Main(string[] args)
        {
            Nokia elevenHundred = new Nokia("1100", 60, "Metro PCS", "Ringgg ring ringggg");

            elevenHundred.DisplayInfo();
            System.Console.WriteLine(elevenHundred.Ring());
            System.Console.WriteLine(elevenHundred.Unlock());

            Galaxy s8 = new Galaxy("s8", 100, "US Cellular", "Ring ring ring");

            System.Console.WriteLine(s8.Ring());
            System.Console.WriteLine(s8.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("");
        }