} //end constructor /** * Preferred constructor for this object * @param aln - airline number * @param fn - flight number * @param o - origin city * @param d - destination city */ public flight_Test(string aln, string fn, city o, city d) { setAirLineName(aln); setFlightNumber(fn); setOriginCity(o); SetDestinationCity(d); } //end constructor
/** * Empty-argument constructor to put * the object into a consistent state. */ public flight_Test() { airLineName = null; SetOriginCity1(null); destinationcity = null; flightNumber = null; } //end constructor
public static void Main(String[] args) { city o = new city("Louisville, KY", 38.2527, 85.7585); city d = new city("Los Angeles, CA", 34.0522, 118.243680); }
public Program(city d2) { this.d2 = d2; }
private void SetDestinationCity(city d) { throw new NotImplementedException(); }
} //end constructor private void setOriginCity(city o) { throw new NotImplementedException(); }
/** * Setter for destinationCity * @param destinationCity */ void SetDestinationcity(city destinationCity) { this.destinationcity = destinationCity; } //end setDestinationCity
/** * Setter for originCity * @param originCity */ void SetOriginCity(city originCity) { SetOriginCity1(originCity); } //end setOriginCity
/** * Getter for originCity * @return */ private void SetOriginCity1(city value) { OriginCity = value; }