PRO192_-_PE_-_SU_2024_-_s_1_2167.webp
Thúy Nga1

PRO192_-_PE_-_SU_2024_-_s_1_2167.webp

Question 3:
(3 marks) Write a class Speaker with the following information:SpeakerWhere:
3 of 3
Paper No: 1
-name:String
-power:int
+Speaker ()
+Speaker (name: String, power:int)
+getName():String
+getPower():int
+setName(name:String):void
+setPower(power:int):void
getName():String - return name.
getPower():int-return power.
setName(name:String): void - update name.
setPower(power:int): void - update power.
The interface ISpeaker below is already compiled and given in byte code format, thus you can use it without creating ISpeaker.java file.
import java.util.List;
public interface ISpeaker {
<
Zoom
>
public int f1(List<Speaker> t);
90%
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRO192_-_PE_-_SU_2024_-_s_1_2167.webp
File size
122.1 KB
Dimensions
916px x 988px

Share this media

Back
Bên trên Bottom