class Mammal { String name = "furry "; String makeNoise() { return "noise"; } } class Zebra extends Mammal { String name = "stripes "; String makeNoise() { return "bray"; } } public class MainClass { public static void main(String[] args) { Mammal m = new Zebra(); System.out.println(m.name + m.makeNoise()); } }