Ok..I am asking a similar sort of question...
If I have a Form...I then take the values of of textboxes(user entered) and pass them in to the constructor of the class and set the attributes to the values passed in to the constructor.
I know I can create objects myself such as myob1,myob2,myob3 etc and store different values in those objects.
What I want to know is..can I make an instance of the class and call the object the name of the title that I pass in to the constructor?
I do not think that you can do this..
So therefore if I wanted to make new objects every time different values are passed in to the constructor..how would I achieve this?
Would you have to pass values in...store the values in a text file say...then pass new values in and overwrite them then store those values and so on?
*EDIT*
I dont think I worded that very well....
At run time I want the user to be able to enter say the name of a book *Alice in wonderland*
This would then create an object called *Alice in wonderland*...
this would happen for each book...
Once this has been done and each title object contains other values (ISDN,Price etc) If you then wanted to be able to cycle through each object looking for the name of the book you want, and pull up the information about that book?