using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Pisek { internal class Model2 : Model { protected int pocetAut; public Model2(int pocetAut) { this.pocetAut = pocetAut; } public override void VytvorAuta() { for (int i = 0; i < pocetAut; i++) { new Auto($"Auto_{i}", this, 10, 120, 5, 120); } } } }