can't call super from method but I need to??
- From: "caultonpos@xxxxxxxxx" <caultonpos@xxxxxxxxx>
- Date: Sun, 30 Dec 2007 15:12:38 -0800 (PST)
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);
}
}
.
- Follow-Ups:
- Re: can't call super from method but I need to??
- From: Daniel Pitts
- Re: can't call super from method but I need to??
- Prev by Date: Re: New File with a Directory
- Next by Date: Re: Use of AssertionError
- Previous by thread: java data grid
- Next by thread: Re: can't call super from method but I need to??
- Index(es):
Relevant Pages
|