еще правки лабы 6

This commit is contained in:
Полина Чубыкина 2023-12-06 10:17:12 +04:00
parent c9a2398e47
commit 8c059e0262

View File

@ -9,9 +9,9 @@ namespace Sailboat.Entities
public class EntitySailboat : EntityBoat public class EntitySailboat : EntityBoat
{ {
public Color AdditionalColor { get; set; } public Color AdditionalColor { get; set; }
public void setAdditionalColor(Color color) { AdditionalColor = color; }
public bool Hull { get; private set; } public bool Hull { get; private set; }
public bool Sail { get; private set; } public bool Sail { get; private set; }
public void setAdditionalColor(Color color) { AdditionalColor = color; }
public EntitySailboat(int speed, double weight, Color bodyColor, Color public EntitySailboat(int speed, double weight, Color bodyColor, Color
additionalColor, bool hull, bool sail) : base (speed, weight, bodyColor) additionalColor, bool hull, bool sail) : base (speed, weight, bodyColor)
{ {