☑Kizspy.me
2 of 2
Paper No: 7
Zoom
-driver:String
-rate:int
+Canoe()
+Canoe(driver:String, rate:int)
+getDriver():String
+getRate():int
+setDriver(driver:String):void
+toString():String
• getDriver():String - return driver.
•
•
•
getRate():int-return rate.
setDriver(driver:String):void - update driver.
toString():String-return the string of format:
driver, rate
SpecCanoe
-color:String
+SpecCanoe()
+SpecCanoe(driver:String, rate:int, color:String)
+getColor():String
+toString()):String
+setData():void
+aat Value String
.
Where:
toString():String return the string of
format:
driver, color, rate

getColor():String - return color.
.setData():void - Append the last digit of
the rate to the begining of the driver
string.
getValue()-String - Check if the color
+ 100%
Close