20251108144444.webp
Q

20251108144444.webp

Question paper (build 07.05.20.19)
Question 3:
(3 marks) Write a class Coffee with the following information:
3 of 3
Paper No: 6
-name:String
-size:int
+Coffee ()
Coffee
+Coffee (name:String, size:int)
+getName():String
+getSize(cint
+setName(name:String):void
+setSize(size:int):void
Where:
getName():String-return name.
⚫ getSize():int-return size.
.setName(name:String): void-update name.
.setSize(size:int): void-update size.
The interface ICoffee below is already compiled and given in byte code format, thus you can use it
without creating ICoffee.java file.
Chưa có bình luận nào.

Thông tin

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

Share this media

Back
Bên trên Bottom