PIbd-23_Lisov_N.A._AirFight.../AirFighter/EntityAircraft.cs
2022-10-03 16:28:44 +04:00

41 lines
764 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AirFighter
{
public class EntityAircraft
{
public int Speed
{
get;
private set;
}
public float Weight
{
get;
private set;
}
public Color BodyColor
{
get;
private set;
}
//=> оператор подобный return
public float Step => Speed * 100 / Weight;
public EntityAircraft(int speed, float weight, Color bodyColor)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
}
}
}