Syntax for accessing method of enclosing class with same name as one of this's methods

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: Syntax for accessing method of enclosing class with same name as one of this's methods

Why is this not good design? Actually the real problem is both the enclosing
class and inner class inherit from Component. I want to use one of its(Component's)
methods for the enclosing class. Your suggestion gives an error since the
method is not static.

Re: Syntax for accessing method of enclosing class with same name as one of this's methods

Okay, so try A.this.doSomething().

PC2

"Luchador" <rcruz@cs.utexas.edu> wrote in message
news:3b5b2adf$1@news.devx.com...
>
> Why is this not good design? Actually the real problem is both the
enclosing
> class and inner class inherit from Component. I want to use one of
its(Component's)
> methods for the enclosing class. Your suggestion gives an error since the
> method is not static.