public class TestHare { public static void main(String[] args) { Hare sesongHare = new P?skehare(); Egglegger h2 = (Egglegger) sesongHare; P?skehare h1 = (P?skehare) sesongHare; Egglegger h3 = h1; } } interface Egglegger { int antallEgg(); } class Hare { } class P?skehare extends Hare implements Egglegger { int antall = 5; public int antallEgg() { return antall; } }