I dont get the question I tried multiple solutions but nothing worked out for me.
package de.codegym.task.task06.task0602;
/*
Zombie-Katzen, Zombie-Hunde
*/
public class Katze {
protected void finalize() throws Throwable{
System.out.println("Eine Katze wurde zerstört");
}
public static void main(String[] args) {
}
}
class Hund {
//schreib hier deinen Code
}