☑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