Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serialize Data

 
Tim Fernandez
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I have an IData class which extends DataMain. Data implements IData. The reason why i had this design is because I want to add some methods to Data class and still use the interface. To make this possible i added a new interface that extends DataMain and inside this interface i defined the added method. Now my problem is serialization. I want to serialize IData since i'm passing it as a paramater to my RemoteData object. But since it is an interface it is not possible. Is there a way to do it? If i serialize Data and pass it instead then i wouldnt be able to use some of the new methods i added.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim,

An interface can extend more than one other interface .

Regards, Andrew
 
Tim Fernandez
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Andrew!Stupid me!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic