PIbd-23_Vrazhkin_S_A_Electr.../lab1/EntityElectricLocomotiv.cs

12 lines
392 B
C#
Raw Permalink Normal View History

2023-10-03 11:53:51 +04:00
namespace ElectricLocomotive;
public class EntityElectricLocomotiv : EntityLocomotiv
{
public Color BatteryColor { get; private set; }
public Color RogaColor { get; private set; }
public EntityElectricLocomotiv(int speed,double weight, Color batteryColor, Color rogaColor) : base(speed, weight)
{
BatteryColor = batteryColor;
RogaColor = rogaColor;
}
}