I have the following situation: There is abstract Class (abs) and two classes which extend from abs (con1 and con2)
Now I want abs to have an abstract function with an argument where the type of the argument has to be the type of the class itself.
I tried the following in the abs class:
public abstract void foo(abs i);
and the following in con1 and con2:
public abstract void foo(con1 i);
public abstract void foo(con1 i);
but this didn't work. What is the general method to solve problems like that?