class Dyrehage{ public static void main(String[] args){ Dyr[] dyrene = {new Gepard(), new Elefant(), new Salamander()}; for (Dyr d: dyrene){ System.out.println(d); } } }