コード例 #1
0
        static void Main(string[] args)
        {
            Toyota c = new Toyota("X-Corolla", "24235346536", "2009");

            c.ShowInfo();
            c.SpeedUp();

            Lamborgini l = new Lamborgini("Huraka", "343465447", "2018");

            l.NOS();
            l.EmergencyBrake();
            l.Start();
            l.ShowInfo();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            Toyota t = new Toyota("X-Corolloa", "34645768", "2009");

            t.ShowInfo();
            t.SpeedUp();

            Lamborgini l = new Lamborgini("Venon", "465475675676", "2018");

            l.ShowInfo();
            l.SpeedUp();
            l.EmergencyBrake();

            IRacingCar c = new Lamborgini();
        }