namespace ElectricLocomotive; public class EntityElectricLocomotiv : EntityLocomotiv { public Color BatteryColor { get; set; } public Color RogaColor { get; set; } public bool isRoga; public bool isBattery; public EntityElectricLocomotiv(int speed,double weight, Color batteryColor, Color rogaColor, Color mainColor, Color dopColor, bool isRoga, bool isBattery) : base(speed, weight, mainColor, dopColor) { BatteryColor = batteryColor; RogaColor = rogaColor; this.isRoga = isRoga; this.isBattery = isBattery; } }