лаба 6 правки

This commit is contained in:
Полина Чубыкина 2023-12-05 23:30:55 +04:00
parent 5ef5d78937
commit 8791edafb8

View File

@ -11,6 +11,7 @@ namespace Sailboat.Entities
public int Speed { get; private set; }
public double Weight { get; private set; }
public Color BodyColor { get; set; }
public void setBodyColor(Color color) { BodyColor = color; }
public double Step => (double)Speed * 100 / Weight;
public EntityBoat(int speed, double weight, Color bodyColor)
{