public void FillElectricEnergy(string i_LicenseNumber, string i_AmountToCharge) { EngineRunsOnElectricity engineOnElecticity = r_VehiclesInGarage[i_LicenseNumber].Vehicle.EngineOfVehicle as EngineRunsOnElectricity; engineOnElecticity.EngineBatteryFill(i_AmountToCharge); }
public ElectricCar(string i_NumberOfPlate) : base(i_NumberOfPlate) { m_Engine = new EngineRunsOnElectricity(k_MaxElectricCarBatteyLife); AddWheels(k_MaximumPressureOfWheels); }