예제 #1
0
        static void Main(string[] args)
        {
            IPhone apple   = new IPhone("6", 75, "AT&T", "de-de-de de di-du-de dedidu de dudu de-de");
            Galaxy android = new Galaxy("S.4", 15, "Ting", "Ringggg, Ring Ring RRIIIBriinNGN!");

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

            Console.WriteLine("------------------");

            Console.WriteLine(android.Ring());
            Console.WriteLine(android.Unlock());
            android.DisplayInfo();
        }
예제 #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");
            IPhone x             = new IPhone("X", 80, "AT&T", "Gunggg ging gunggg");

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

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

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