Last active
February 19, 2018 20:12
-
-
Save kamath/01ac7d71aeb54f61907f51ab80dde642 to your computer and use it in GitHub Desktop.
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 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