C
caultonpos
See below, how can I call animals growl while within a method of my
interface (I need that - cant get rid of it).
public class animal {
public void growl() {
System.out.println("growl");
}
}
public class dog extends animal {
public void growl() {
IDefaultCall default = new IDefaultCall () {
public void execute() {
// I can do it this as super. points to IDefaultCell !
super.growl();
}
};
call (default);
}
}
interface (I need that - cant get rid of it).
public class animal {
public void growl() {
System.out.println("growl");
}
}
public class dog extends animal {
public void growl() {
IDefaultCall default = new IDefaultCall () {
public void execute() {
// I can do it this as super. points to IDefaultCell !
super.growl();
}
};
call (default);
}
}