public class Mammal { private String name; private String sound; public Mammal() { name = "Mammal"; sound = "silence"; } public void setName(String name) { this.name = name; } public String getName() { return name; } public void setSound(String sound) { this.sound=sound; } public String getSound() { return sound; } public void speak() { System.out.print(sound); } public boolean laysEggs() { return false; } public boolean livesInWater() { return false; } }