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.
On Apr 30, 1:08 pm, miga <[email protected]> wrote: > On Apr 30, 10:48 am, Anton Shaykin <[email protected]> wrote:> Again > problems with Serialization homework. Anyone understands what > > this means: Profile field, which has the following fields ... It > > doesn't make much sense to me. > > Any help would be appreciated. > > You may browse the forum, I've replied recently to this same question. > Basically you may interpret field as class in Profile field, and field > as variable in the rest of the sentence. > And from the point of view of the class that takes the Profile field, > it is a variable for this class. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
