コード例 #1
0
        public void FillElectricEnergy(string i_LicenseNumber, string i_AmountToCharge)
        {
            EngineRunsOnElectricity engineOnElecticity =
                r_VehiclesInGarage[i_LicenseNumber].Vehicle.EngineOfVehicle as EngineRunsOnElectricity;

            engineOnElecticity.EngineBatteryFill(i_AmountToCharge);
        }
コード例 #2
0
 public ElectricCar(string i_NumberOfPlate) : base(i_NumberOfPlate)
 {
     m_Engine = new EngineRunsOnElectricity(k_MaxElectricCarBatteyLife);
     AddWheels(k_MaximumPressureOfWheels);
 }