This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Serializable marker interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Serializable marker interface" Watch "Serializable marker interface" New topic
Author

Serializable marker interface

Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 776

class A implements Serializable{
...
}
public class Asub extends A{
...
}
Question: do I also need to implement Serializable for class Asub ?
Thanks a lot
Pho


Regards,

Pho
Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 776

I found the answer in a related thread.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
For future passersby, the answer is no.
If the super class implements some interface, then so does the sub class.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Serializable marker interface
 
It's not a secret anymore!