PIbd-23-Radaev-A.V.-20/Catamaran/EntityCatamaran.cs
Аркадий Радаев 5ce4825742 res
2023-11-25 20:02:11 +04:00

29 lines
607 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Catamaran
{
public class EntityCatamaran
{
public int Speed { get; private set; }
public double Weight { get; private set; }
public Color BodyColor { get; set; }
public double Step => (double)Speed * 100 / Weight;
public EntityCatamaran(int speed, double weight, Color bodyColor)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
}
}
}