Peter,
When I was reading it the first time, I probably have read a comma on a
different place (it is exactly there broken in my reader), now you point me
on it and I read it again, then I see it in another way. However I do not
see a reason for two classes in this. The product class can have its methods
doing the reading and writing. But you are right , as you tell that the
entity has nothing to do with it.
Cor
"Peter Morris" <(E-Mail Removed)> wrote in message
news:%23rPAIN%(E-Mail Removed)...
> Unless I misunderstood he just asked
>
> "Shall I have a Product class, and a class for loading/storing its state
> in a file"
>
> Did you read the question differently, or are you saying he should put
> persistence into the Product class?
>
>
>
> --
> Pete
> ====
> http://mrpmorris.blogspot.com
> http://www.AlterEgos.com - Who do you want to be?