Page 1 of 1

About Question enthuware.ocpjp.v7.2.1100 :

Posted: Wed Nov 05, 2014 1:54 am
by SepticInsect
I think your explanation is contradictory.

"Here the anonymous class actually extends from MyListener class and successfully overrides the actionPerformed() method."

Then it does not extend directly from the Object class.

Re: About Question enthuware.ocpjp.v7.2.1100 :

Posted: Wed Nov 05, 2014 8:55 am
by admin
I don't see any contradiction. The explanation is showing you that an anonymous class may directly extend from Object class and it may not also. So the problem statement is false.
-Paul.

Re: About Question enthuware.ocpjp.v7.2.1100 :

Posted: Wed Nov 05, 2014 10:22 am
by SepticInsect
Sorry! My mistake.