using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DumpTruck.Entities { public class EntityTruck { /// /// Скорость /// public int Speed { get; private set; } /// /// Вес /// public double Weight { get; private set; } /// /// Основной цвет /// public Color BodyColor { get; private set; } /// /// Шаг /// public double Step => (double)Speed * 100 / Weight; /// /// Конструктор /// /// Скорость /// Вес грузовика /// Основной цвет грузовика public EntityTruck(int speed, double weight, Color bodyColor) { Speed = speed; Weight = weight; BodyColor = bodyColor; } } }