Exemple #1
0
    public static void xMain()
    {
        AdminLogin login = new AdminLogin();

        login.LoginFromEmailCode();
        login.LoginFromSMSCode();
        login.LoginByIdPassword();

        Console.WriteLine("***************************************");

        Vitz1999Standard vitz99 = new Vitz1999Standard();

        Console.WriteLine(vitz99.model);
        Console.WriteLine(vitz99.price);
        Console.WriteLine(vitz99.dimensions);
        vitz99.Start();
        vitz99.AirConditioning();
        vitz99.Transmission();
        vitz99.Braking();

        Console.WriteLine("***************************************");

        Vitz2004Auto vitz04 = new Vitz2004Auto();

        Console.WriteLine(vitz04.model);
        Console.WriteLine(vitz04.price);
        Console.WriteLine(vitz04.dimensions);
        vitz04.Start();
        vitz04.AirConditioning();
        vitz04.Transmission();
        vitz04.Braking();

        Console.WriteLine("********************************");

        Vitz2005 vitz05 = new Vitz2005();

        Console.WriteLine(vitz05.model);
        Console.WriteLine(vitz05.price);
        Console.WriteLine(vitz05.dimensions);
        vitz05.Start();
        vitz05.AirConditioning();
        vitz05.Transmission();
        vitz05.Braking();

        Console.WriteLine("********************************");

        NaseemSahab naseem = new NaseemSahab();

        naseem.FavouriteWork();

        Console.WriteLine("********************************");

        Farasat1 farast = new Farasat1();

        farast.FavouriteWork();

        Calculator cal = new Calculator();

        cal.Add(1, 2);
        cal.Add(1, 2.5);
        cal.Add(3.5, 2);
        cal.Add(1, 2, 3);

        ScientificCalculator scCal = new ScientificCalculator();

        scCal.Add(1, 2);
        scCal.Add(1, 2.5);
        scCal.Add(3.5, 2);
        scCal.Add(1, 2, 3);
        scCal.Add(1, 2, 3.3); // Overloaded version in the child class

        Console.WriteLine("********************************");

        IPhone5S iphone5s = new IPhone5S();

        iphone5s.Calling();
        iphone5s.InternetSurfing();
        iphone5s.Gaming();

        Console.ReadLine();

        SingleSignOn singleSignOn = new SingleSignOn();

        singleSignOn.fbSignOn.SignIn();
        singleSignOn.instaSignOn.SignIn();
        singleSignOn.googleSignOn.SignIn();

        SofaCumBed sofaCumBed = new SofaCumBed();

        sofaCumBed.bed.Lay();
        sofaCumBed.sofa.Lay();
    }