On Jul 24, 5:01 am, Alfredo Torres <[email protected]>
wrote:
> Hi all,
>
>   I have three classes:
>
>    Main, Profile and School
>
>     Is there a way to serialize the three classes in the same file?, or i
> have to serialize each class in a diferent file??
It can be serialised in a single file, provided they are related. Say
main has profile and school as properties, it can be serialised like
this:
 Main persistentOb=new Main(profile, school);
 objectOutputStream.writeObject(persistentOb);
>    Or is there a way to use inner classes to serialize just one class?
>
> Could any one clarify this issue to me?
>
> Thanks in advance
>
> --
> Saludos
> Alfredo Torres
> Hab.+58 212 9446304
> Cel. +58 416 6118599

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to