Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Jan 31, 2012 08:50 AM|LINK
in my opinion,
2- no you dont, but you can create any sort of constructor with any number/combination of the Customer class, if you realise you need it! :)
3- You need to have a structure that hold Customers, ie a List of Customers.
List<Customer> listCustomers = new List<Customer>();
...then you must add custumers to the list:
You can always override ToString() in the Customer class
public override string ToString()
return "Customer "+NAME; //example!
and finally create a foreach loop to write each customer
foreach(Customer cust in listCustomers)
4-I dont think that is possible, a constructor is a data type initializer, so in order to initialize a data object of type Customer, you need to use the Customer contructor!
Hope it helps