コード例 #1
0
        }        //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
コード例 #2
0
        /**
         * Empty-argument constructor to put
         * the object into a consistent state.
         */
        public flight_Test()

        {
            airLineName = null;
            SetOriginCity1(null);
            destinationcity = null;
            flightNumber    = null;
        }        //end constructor
コード例 #3
0
 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);
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: gcumella01/Flight_GAC
		public Program(city d2)
		{
			this.d2 = d2;
		}
コード例 #5
0
 private void SetDestinationCity(city d)
 {
     throw new NotImplementedException();
 }
コード例 #6
0
        }        //end constructor

        private void setOriginCity(city o)
        {
            throw new NotImplementedException();
        }
コード例 #7
0
 /**
  * Setter for destinationCity
  * @param destinationCity
  */
 void SetDestinationcity(city destinationCity)
 {
     this.destinationcity = destinationCity;
 }                      //end setDestinationCity
コード例 #8
0
 /**
  * Setter for originCity
  * @param originCity
  */
 void SetOriginCity(city originCity)
 {
     SetOriginCity1(originCity);
 }        //end setOriginCity
コード例 #9
0
 /**
  * Getter for originCity
  * @return
  */
 private void SetOriginCity1(city value)
 {
     OriginCity = value;
 }