self-serialization

  • Thread starter Thread starter Guest
  • Start date Start date
Can an object serialize itself?

Thank you.

Hi,

Yes of course. The serialization process has nothing to do with the
caller.

Of course, several things should be considered such as the point the
object will be serialized etc.

Feel free to ask any further questions.
Cheers,
Moty
 
Can an object serialize itself?

Thank you.

It is the opinion of some of the developers where I work, that the
proper location for a class' serialization and deserialization methods
are in the class itself, so yes, a class can most definitely serialize/
deserialize itself.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top