Originally posted by Andrew Monkhouse:
Hi Jamie
Don't read too much into my regrets about having multiple instances of the data class - I was doing a different assignment. Many of my regrets were because I had to change some code supplied by Sun, and I dont believe that was the right thing to do.
I think my questions for the new assignment would be:is there only one class that can write to the the physical file? is the Data class the class that is doing that writing?
I think it would be better to have only one class that can actually do writing to the file. And I think that there should only be one instance of the class that does the writing per file (By the way, the class that does the writing does not have to be the Data class).
Just my 2 cents worth.
Regards, Andrew