Пример #1
0
        static void Main(string[] args)
        {
            Tyre nokia = new Tyre { Name = "Blorp", Model = "Erhmergerd", Size = "Derp16"};

            Vehicle car = new Vehicle();
            car.AddTyre(nokia);
            car.AddTyre(nokia);
            car.AddTyre(nokia);
            car.AddTyre(nokia);
            car.Name = "PoS";
            car.Model = "Trabant";

            Console.WriteLine(car.ToString()); //Miks tää ei toimidsfgfdgdf 
            

        }
Пример #2
0
 public void AddTyre(Tyre tyre)
 {
     Tyres.Add(tyre);
 }