Hi,
I need help deciding what classes should be used to store licensing information entered into forms (web based or ms forms) by truck drivers and allow reports to be made?
I'm guessing I would need a License class, Driver class and a GUI?
Any suggestions? :)
Drew TaylorPosted Jun 5, 2008, 10:31 AM
Thanks for your comments guys,
Michael, Ryan, I should have said that I would call the classes those names although I realise they can be called anything. What I really need advice on is what responsibilities will the classes need to have?
For example, if I create a class called licenseInformation to make instances of license info objects: is that the best way to store details entered by the driver?
What would be the most efficient way to allow a user (the driver) to enter liscense information such as how long they have had their license for, the date they were issued their liscence, their name and address?
Other than stroing data in objects, is stroring information in a database the best way?
Thanks,
Ryan AlfordPosted Jun 5, 2008, 10:12 AM
MichaelPosted Jun 5, 2008, 8:16 AM
a single class containing
string name;
string guid;
should do for most things
if you need the driver information then you need to decide if you just need to retreve a name or a more complex set of values.
same with the Guid if you only need to recall it then it's a waste of resources to use the Guid class however if you need to process it as a guid then a string wont cut it.
so you need a specification of your task before anyone can know what you need