Skip to content

Instantly share code, notes, and snippets.

@kamath
Last active February 19, 2018 20:12
Show Gist options
  • Save kamath/01ac7d71aeb54f61907f51ab80dde642 to your computer and use it in GitHub Desktop.
Save kamath/01ac7d71aeb54f61907f51ab80dde642 to your computer and use it in GitHub Desktop.
public class DatBoi {
private String color;
private String returnString;
private String colorOfUnicycle;
public DatBoi() {
color = "green";
returnString = "oh shoot whaddup!";
colorOfUnicycle = "red";
}
public DatBoi(String colorOfFrog, String returnword, String unicycleColor) {
color = colorOfFrog;
returnString = returnword;
colorOfUnicycle = unicycleColor;
}
public DatBoi(String returnword) {
color = "green";
returnString = returnword;
colorOfUnicycle = "red";
}
public String getCatchphrase() {
return returnString;
}
public void setCatchphrase(String catchPhrase) {
returnString = catchPhrase;
}
public String toString() {
return "Your frog is "+color+" and rides a "+colorOfUnicycle+" unicycle. "+returnString ;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment