Re: Function in Function?
Re: Function in Function?
Quote:
the block means that follows the new operation.
That is an anonymous class. Google define anonymous class in java
for descriptions:
Re: Function in Function?
Quote:
Originally Posted by
Norm
That is an anonymous class. Google define anonymous class in java
for descriptions:
Thanks, Norm, I'm gonna Google the term 'anonymous class' and find out what that is for. :rolleyes:
Re: Function in Function?
Now I got it. It's not creating an instance of Authenticator class, but extending it. As said by Norm, an 'anonymous class' is used here, and the function defined within the anonymous class is overriding the one from Authenticator.
This is really different from C++. I'm finding Java more interesting now. :o
Re: Function in Function?
Java refers to them as methods, not functions :P