-code:String
-duration:int
getCode():String - return code.
getDuration():int - return duration.
2 of 2
Paper No: 9
+Flight()
+Flight(code:String, duration:int)
+getCode():String
+getDuration():int
+setCode(code:String):void
+toString():String
SpecFlight
-schedule:String
+SpecFlight()
+SpecFlight(code: String, duration:int,
schedule:String)
+getSchedule():String
+toString():String
+setData):void
+ 100%
Zoom
Close
setCode(code:String):void - update code.
toString():String - return the string of format:code, duration
Where:
toString():String return the string of
format:
code, schedule, duration
getSchedule():String - return schedule.
setData():void - Append the last digit of the duration to the begining of the code string.
getValue():String - Check if the schedule