Beispiel #1
0
        static void Main(string[] args)
        {
            Vehicle v = new Vehicle("Auto", 200, 4);
            v.Speed = 50;
            v.Tyres = 2;
            v.Name = "Mopo";
            v.PrintData();
            Console.WriteLine( v.Tostring() );
            Console.ReadLine();


        }
Beispiel #2
0
        static void Main(string[] args)
        {
            // Tehtävä 4
            Vehicle vehicle = new Vehicle();
            vehicle.Name = "Lada";
            vehicle.Speed = 80;
            vehicle.Tyres = 4;
            vehicle.PrintData();
            Console.WriteLine(vehicle.ToString());

            Console.ReadLine();
        }