Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serialization : Help Needed

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
using writeobject and readobject :

if we define these methods then also we won't be able to serialize the HAS-A relationship object. In other words, the Collar Object. Right ?
 
prashanth kumar
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming your Collar doesnt implements serializable,you are right.
You are recreating the Collar object in readObject() and passing it on.

Rgds
Prashanth
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic