Label A-G in the method so I can follow along, thank you. F) You now decide to i
ID: 3750107 • Letter: L
Question
Label A-G in the method so I can follow along, thank you.
F) You now decide to include a counter to keep track of how many Customer objects have been created. Write:the declaration of a variable to keep track of this information the code that would be placed inside the Customer constructor a getter method for this variable Note: You are not counting how many orders a customer has. You are counting how many customers there are.
G) Write an enumerated data type that describes an order's status as purchased, shipped, delivered. Add an additional variable to the enum to describe whether an order can be modified. An order that is shipped or delivered can no longer be modified.
You will write a class called Customer. A customer is described by: . a name an ArrayList of Order objects Use good principles of class design. Here is the Order class: public class Order private String orderID; private double total; /1 cost of the order public Order(String orderID, double total) this.orderID orderID; this.total total; public String getorderID) return orderID; public double getTotal() return total;Explanation / Answer
a)
b. Setters need not be included as the customer name , initial and orderlist gets initialized when Customer class object is being created.
example : Customer customer = new Customer("Bob"); or new Customer('d',"dave");
c.
D.
E.
F)
G.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.