I have this class
class Customer{
int ID;
Time arriveTime;
Time serviceTime;
Time completeTime;
int transaction;
}
Don't I need a constructor in order to set the values inside? I will be using this class to hold different values while making an array of Customers. Wouldn't this mean I would need this in order to set the values?
public Customer(int id, Time arrive, Time service, Time complete, int trans){
ID = id;
arriveTime = arrive;
serviceTime = service;
completeTime = complete;
transaction = trans;
}
I only need the Customer class to hold the information about each customer.