Menu

#1 Mock or Intercept a parent

open
nobody
None
5
2009-10-19
2009-10-19
Anonymous
No

Hello!

I have a class that extends another and the child inherits a method it overrules:

class parent {
int method() {
...
}
}
class child extends parent {
int method() {
int ret = super.method();
/* do some other stuff */
}

I'd like to fake the super, how do I do that?

Thanks,

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.