| Author |
Serialize Data
|
Tim Fernandez
Ranch Hand
Joined: Aug 31, 2005
Posts: 65
|
|
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
Joined: Mar 28, 2003
Posts: 10816
|
|
Hi Tim, An interface can extend more than one other interface . Regards, Andrew
|
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
|
 |
Tim Fernandez
Ranch Hand
Joined: Aug 31, 2005
Posts: 65
|
|
|
Thanks Andrew!Stupid me!
|
 |
 |
|
|
subject: Serialize Data
|
|
|