Created
January 3, 2013 10:27
-
-
Save madan712/4442470 to your computer and use it in GitHub Desktop.
Serialization in Java - Dog class implements Serializable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Dog.java */ | |
import java.io.Serializable; | |
public class Dog implements Serializable { | |
private String name; | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment