PRO192_-_PE_-_SP_2025_-_Block_5_3850.webp
S

PRO192_-_PE_-_SP_2025_-_Block_5_3850.webp

+Canoe ()
✓ Kizspy. me +Canoe (driver:String, rate:int)
+getDriver():String
+getRate():int
+setDriver(driver:String):void
+setRate(rate:int):void
⚫ setDriver(driver:String): void - update driver.
• setRate(rate:int): void-update rate.
The interface ICanoe below is already compiled and given in byte driver format, thus you can use it
without creating ICanoe.java file.
import java.util.List;
public interface ICanoe {
}
public int f1(List<Canoe> t);
public void f2(List<Canoe> t);
public void f3(List<Canoe> t);
Zoom
Write a class MyCanoe, which implements the interface ICanoe. The class MyCanoe implements
methods f1, f2 and f3 in ICanoe as below (you can add other functions in MyCanoe class):
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
strong_will
Ngày thêm
Lượt xem
3,568
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom