Sorry, I'm just really confused... What should I put into the constructor of MyClassToBePersisted?
On Apr 30, 2:47 pm, miga <[email protected]> wrote: > On Apr 30, 11:56 am, Anton Shaykin <[email protected]> wrote:> Fine, > then. But, say, we have Profile and School fields in > > MyClassToBePersisted. Assume, we even set name, age, nameOfSchool... > > values inside MyClassToBePersisted. Then, we serialize that object, > > and when we deserialize, how are we going to obtain its values? > > Through Public and School methods? Seems impossible to me. > > You have to write some methods to get access to those variables; kind > of chaining the calls. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
