public class Snake { private String species; public Snake() { setSpecies("none"); } public Snake(String aSpecies) { setSpecies(aSpecies); } public String getSpecies() { return(species); } public void setSpecies(String aSpecies) { if (aSpecies == null) System.out.println("Can't set: No species provided"); else species = aSpecies; } public void sleep() { // Call the snore method here } public void snore() { System.out.println("zzzZZZ"); } }