public MilitaryPlane(string airplaneModel, int maxSpeed, int maxFlightDistance, int maxLoadCapacity, MilitaryAirplaneType airplaneType) : base(airplaneModel, maxSpeed, maxFlightDistance, maxLoadCapacity) { _type = airplaneType; }
private bool IsListContainsOnlySelectedMilitaryAirplaneType(List <MilitaryPlane> militaryPlanes, MilitaryAirplaneType airplaneType) { return(militaryPlanes.FirstOrDefault(x => x.GetPlaneType() != airplaneType) == null); }