public class Main { public static void main(String[] args) { Animal a; a = new Cow(); // Animal c = new Animal("Cow"); No! Animal[] b = new Animal[3]; b[0] = new Cow(); b[1] = new Sheep(); b[2] = new Sheep(); for (Animal c : b) { c.speak(); System.out.println(c.toString()); System.out.println(c.getClass()); System.out.println(); } } }