I know that the implementation of the interface Serializable makes an object to be serialized, but how is possible that when the interface is simply a definition of a class with their methods like:
interface Serializable {
public one();
public two();
}
public class Dog implements Serializable {
private static final long serialVersionUID = 1L;
...
}
(class Dog doesn't implement any method of Serializable)
Simply I don't understand, can you explain me?