public Airplane(int wingLength, int cntPlaces, double defaultWeight, double maxWeight, string name) { airplaneType = EAirplaneType.Passenger; this.wingLength = wingLength; this.cntPlaces = cntPlaces; this.defaultWeight = defaultWeight; this.name = name; cntOfAirplanes++; weightOfAirplanes += defaultWeight; }
public Airplane(EAirplaneType airplaneType, int wingLength, int cntPlaces, double defaultWeight, double maxWeight, string name) { this.airplaneType = airplaneType; this.wingLength = wingLength; this.cntPlaces = cntPlaces; this.defaultWeight = defaultWeight; this.maxWeight = maxWeight; this.name = name; cntOfAirplanes++; weightOfAirplanes += defaultWeight; }
public Airplane() { wingLength = 0; cntPlaces = 0; maxWeight = 0; defaultWeight = 0; name = "Unknown"; airplaneType = EAirplaneType.Passenger; cntOfAirplanes++; weightOfAirplanes += defaultWeight; }
public Airplane(int cntPlaces, double defaultWeight, double maxWeight) { airplaneType = EAirplaneType.Passenger; wingLength = -1; name = "Unknown"; this.cntPlaces = cntPlaces; this.defaultWeight = defaultWeight; this.maxWeight = maxWeight; cntOfAirplanes++; weightOfAirplanes += defaultWeight; }