class Hund extends Dyr implements HarChip{ private Person eier; private String id; public Hund(String navn, int alder, Person eier, String id){ super(navn, alder); this.eier = eier; this.id = id; } public Person hentEier(){ return eier; } public String hentId(){ return id; } @Override public String toString(){ return super.toString() + "\nEier:" + eier.toString(); } }