Created
June 30, 2015 17:42
-
-
Save calindotgabriel/8e804500e0fc146857d8 to your computer and use it in GitHub Desktop.
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
package domain.model; | |
/** | |
* Created by motan on 30.06.2015. | |
*/ | |
public class Dog { | |
@Override | |
public String toString() { | |
return "Dog{" + | |
"name='" + name + '\'' + | |
", breed='" + breed + '\'' + | |
'}'; | |
} | |
private String name; | |
private String breed; | |
public Dog(String name, String breed) { | |
this.name = name; | |
this.breed = breed; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public String getBreed() { | |
return breed; | |
} | |
public void setBreed(String breed) { | |
this.breed = breed; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment