PIbd-21 Bakalskaya E.D. LabWork02 BASE #2

Closed
ekallin wants to merge 7 commits from LabWork02 into LabWork01
Showing only changes of commit 9965a02c98 - Show all commits

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectElectricLocomotive
{
public class EntityLocomotive
{
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 EntityLocomotive(int speed, double weight, Color bodyColor)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
}
}
}