View Single Post
  #4 (permalink)  
Old 01-23-2008, 11:13 AM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
Hello frejon26

Quote:
Originally Posted by frejon26
Code:
public interface Serializable{ }
how would this add any functionality, or object "behavior"?
Some interfaces are like tags. If you create a class that can be serialized, that is sent through a stream, then it must be "tagged" as Serializable. To do that, we let our new class implement the Serializable interface. Well, thats how I understand it.

Hope that helped.
__________________
If your ship has not come in yet then build a lighthouse.
Reply With Quote