aspose file tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Serialize Data Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "Serialize Data" Watch "Serialize Data" New topic
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
    
  25

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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Serialize Data
 
Similar Threads
My design choices
release the critics, here comes a design
URLyBird Question - DB Design
Javadoc question and exception question
I need design advice