예제 #1
0
        static void Main(string[] args)
        {
            ElectricEngine silnikk = new ElectricEngine(300, 10);
            ElectricCar    ct      = new ElectricCar(silnikk);

            ct.Jedz(500);
            Console.WriteLine();
        }
예제 #2
0
 public ElectricCar(ElectricEngine silnik)
 {
     Silnik = silnik;
 }