any help is appreciated!
This is for an assignment, its quite basic stuff as were new to it and i went through the practise stuff in the book so i thought id get it but im stuck whenn it comes to this work, Grr!
ok so the questions are;
"2.1 Add an Order class to your project to store the following information about an Order: the Order's reference number, the customer's name , a description and total cost. In addition, the class also stores the order's call-in time and the delivered time (all of type Time).
2.2 Write a constructor which sets the order reference number, customer name, description, total cost and call-in time from suitable formal parameters. Call-in time should be represented by two formal parameters of type int which are passed as actual parameters to a Time constructor. The delivered time should initially be set to null."
Im having problems with making this "Order" class, i get confused where the two classes mix :/
this is some of the time class;
and well heres what ivei done in the "Order" class which im supposed to be doing now
thanks for any helppublic class Order { // 2.1 - fields private int orderNumber; private String customerName; private String description; private int totalCost; private Time callInTime; private Time deliveredTime; //2.2 - constructor public Order (int newOrderNumber, String newCustomerName, String newDescription, int newTotalCost ) { orderNumber = newOrderNumber; customerName = newCustomerName; description = newDescription; totalCost = newTotalCost; callInTime = ; deliveredTime = ; }