Page 1 of 1

About Question enthuware.ocajp.i.v7.2.903 :

Posted: Wed Aug 15, 2012 10:37 pm
by ETS User
Option 4 states:
MyI is a valid class that correctly implements interface I.


MyI in the code does not implement the interface... Although the code defines a method that has the same signature as the abstract method in the I interface. :ugeek:

Re: About Question enthuware.ocajp.i.v7.2.903 :

Posted: Wed Aug 15, 2012 10:41 pm
by Guest
If it did implement interface I it would need to change its access modifier from default to public since interface methods are implicitly public and abstract.

Re: About Question enthuware.ocajp.i.v7.2.903 :

Posted: Thu Aug 16, 2012 1:50 am
by admin
You are right. The explanation is wrong and has now been fixed.
thank you for your feedback!