Hi
I am looking to develop my first app in VB.Net using objects and I have a really basic question!
The app I am looking at keeps information about several categories of users - Individual, Sole Trader, Partnership, Limited Company, etc.
With the exception of the Name - ie First, Last name for individual, company name for companies, etc. Records for all these users share the same requirements - address, postal code, tel no, fax no, email, etc.
My question is this. Is it a good idea to create 1 class holding all the common info (address, postal code, etc) Then have seperate classes for each user category (that basically just hold the name) which each of these classes extends the class holding the common information (address, tel no, etc)?
Or Is it better to create totally seperate classes for each category of user (each class holding name, address, tel no, etc)?
The final app will save, pull data etc from a Access db.
I am really new at VB.Net although used to develop extensively in VB 4. I have never developed anything using OOP so some help please would be gratefully received.
Many thanks
Kevin
I am looking to develop my first app in VB.Net using objects and I have a really basic question!
The app I am looking at keeps information about several categories of users - Individual, Sole Trader, Partnership, Limited Company, etc.
With the exception of the Name - ie First, Last name for individual, company name for companies, etc. Records for all these users share the same requirements - address, postal code, tel no, fax no, email, etc.
My question is this. Is it a good idea to create 1 class holding all the common info (address, postal code, etc) Then have seperate classes for each user category (that basically just hold the name) which each of these classes extends the class holding the common information (address, tel no, etc)?
Or Is it better to create totally seperate classes for each category of user (each class holding name, address, tel no, etc)?
The final app will save, pull data etc from a Access db.
I am really new at VB.Net although used to develop extensively in VB 4. I have never developed anything using OOP so some help please would be gratefully received.
Many thanks
Kevin