示例#1
0
        static void Main(string[] args)
        {
            SportCar sc = new SportCar("Rosu", 2000, "Ford Focus", true, 6);

            Console.WriteLine("Culoarea masini este {0} are o greutate de {1} Kg, se numeste {2} are {3} trepte si {4}", sc.color, sc.height, sc.name, sc.transmision, sc.complet_drive);
            Console.ReadLine();
        }
示例#2
0
        static void Main(string[] args)
        {
            SportCar sc = new SportCar("Rosu",2000,"Ford Focus",true,6);

            Console.WriteLine("Culoarea masini este {0} are o greutate de {1} Kg, se numeste {2} are {3} trepte si {4}",sc.color,sc.height,sc.name,sc.transmision,sc.complet_drive);
            Console.ReadLine();
        }