A
Ash
Hi,
I've created a class named Customers, and proved accessor and mutator
methods for it to manipulate two private member variables named firstname,
lastname.
After doing that, I created an Array of Customers with the following line:
Customers [] CustomerList = new Customer[5];
How do i go about initializing each customer and using the mutator methods
and accessor methods? The Methods are:
public void setNames(string firstname,string lastname);
public string getFirstname();
public string getLastname();
Will appreciate your help...
Thanks,
Ash
I've created a class named Customers, and proved accessor and mutator
methods for it to manipulate two private member variables named firstname,
lastname.
After doing that, I created an Array of Customers with the following line:
Customers [] CustomerList = new Customer[5];
How do i go about initializing each customer and using the mutator methods
and accessor methods? The Methods are:
public void setNames(string firstname,string lastname);
public string getFirstname();
public string getLastname();
Will appreciate your help...
Thanks,
Ash