Esempio n. 1
0
    public static void SevenOne()
    {
        DebugSeven1 x = new DebugSeven1();

        x.DisplayWebAddress();

        WriteLine("Shop at Shopper's World");
        x.DisplayWebAddress();
        WriteLine("The best bargains from around the world");
        x.DisplayWebAddress();
    }
Esempio n. 2
0
    public static void SevenOne()
    {
        DebugSeven1 db = new DebugSeven1(); //added to create an instance

        db.DisplayWebAddress();             //added db to call method
        WriteLine("Shop at Shopper's World");
        db.DisplayWebAddress();             //added db to call method
        WriteLine("The best bargains from around the world");
        db.DisplayWebAddress();             //added db to call method
        ReadLine();                         //added so screen would not flash on/off
    }
Esempio n. 3
0
        static void Main(string[] args)
        {
            DebugSeven1 sev = new DebugSeven1();


            sev.ShowWebAddress();                                                   //bypasses privateness of displayWebAddress method

            Console.WriteLine($"{sev.DisplayWebAddress(sev.num) }");                //calls the 1st overloaded DisplayWebAddresses implementation by passing in sev.num(which is a public property)
            Console.WriteLine($"{sev.DisplayWebAddress(sev.thinker, sev.smart) }"); //calls the 2nd overloaded DisplayWebAddresses implementation by passing in sev.things and sev.smart (which are public properties)

            WriteLine(sev.DisplayWebAddress(sev.things, sev.glory));

            DebugSeven2 two   = new DebugSeven2();
            DebugSeven3 three = new DebugSeven3();
            DebugSeven1 uno   = new DebugSeven1();


            two.Dos();

            //three.Tres();

            ReadKey();
        }