PIbd-23_Lisov_N.A._AirFight.../AirFighter/EntityAircraft.cs

42 lines
757 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AirFighter
{
2022-10-03 03:04:38 +04:00
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;
}
}
}