Created
October 12, 2012 20:05
-
-
Save applegateaustin/3881218 to your computer and use it in GitHub Desktop.
old MacDonald
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
public class Animal { | |
private String anim_type; | |
private String anim_sound; | |
public void setSound(String newSound){ | |
anim_sound = newSound; | |
} | |
public void setType(String newType){ | |
anim_type = newType; | |
} | |
public String getType(){ | |
return anim_sound; | |
} | |
public String getSound(){ | |
return anim_type; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment