aspose file tools
The moose likes Java in General and the fly likes making subclasses serializable necessary? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "making subclasses serializable necessary?" Watch "making subclasses serializable necessary?" New topic
Author

making subclasses serializable necessary?

Rahul P Kumar
Ranch Hand

Joined: Sep 26, 2009
Posts: 188
If I make a super class serializable, then do subclasses have also to implement it in order to get the desired result or it is not necessary ? In same way, if interface extends serializable, do concrete classes have to necessaily implement serializable interface in order to get the desired output?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32599
    
    4
In correct object-oriented inheritance, a subclass has every feature of the superclass.
 
I agree. Here's the link: http://jrebel.com/download
 
subject: making subclasses serializable necessary?
 
Similar Threads
RMI:at client side getting exceptrion like java.io.NotSerializableException
Constructor calling
Serialization
force method to be overriden in subclasses
Inheritence and Interfaces question