I am using VB.net and have a question on how to handle one aspect of OOP
programming.
I have a class for Customers, Vendors, and Employees each of which
inherits a master class, Contacts
Now on my customer center screen I want to fill a list box with all of
my customers in my database on the left and on the right have their
individual account information shown when the user selects a customer.
What is the proper way to fill the database? in VB6 days I would just
directly access the database and create a list of customers and
everytime one was selected directly call their information for the right
from the database.
With OOP should there be a class that has all of the customers in them?
Should it be a collection? Not quite sure which direction to take this
in...
Of course when I select a user I will fill my appropriate Customer class
with the customer the user selected and populate the appropriate fields
that way...
-Ivan
*** Sent via Developersdex http://www.developersdex.com ***