PRO192_-_PE02_-_SP_2025_3836.webp
Q

PRO192_-_PE02_-_SP_2025_3836.webp

☑Kizspy.me
Question 3:
(2 marks)
Write a class named Order with the following information:
- orderld: String
Order
- customerName:String
- sale: double
+ Order ()
+ Order (orderld: String,
customerName:String, sale: double)
+ Getters & Setters
+ toString(): String
Where:


Order ()-default constructor
Order (orderld: String,
customerName: String, sale: double)-
parameterized constructor: set values
to the orderld, customerName, and the
sale
Getters & Setters: write the setters and
getters of all the fields
⚫ toString(): String-return the string of
format containing the information of the
Order: orderld, customerName,
sale. The orderld and customerName are
in uppercase format, the sale is
formatted with two decimal places
Write a class OrderList which extends from ArrayList (ArrayList is a collection) with the following
information:
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
Quốc Khánh1
Ngày thêm
Lượt xem
1,090
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom