Last active
July 8, 2016 10:37
-
-
Save mariomartinezricston/27c5ef7f2c306e66a5f9746b7bbcf21a to your computer and use it in GitHub Desktop.
Animal POJO
This file contains 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
public class Animal { | |
private String name; | |
public Animal(){ | |
name="maxMule"; | |
} | |
public Animal(String name){ | |
this.name=name; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
@Override | |
public String toString() { | |
return "Animal [name=" + name + "]"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment