Page 1 of 1

About Question enthuware.ocpjp.v11.2.3651 :

Posted: Fri Oct 22, 2021 10:08 am
by GaiusCaesar
The answer states:

The HomeOffice class inherits two versions of lockTheGates methods - one from the Office interface (which is default), and one from the Home interface (which is abstract). Java does not permit a class to inherit multiple versions of the same method from multiple unrelated interfaces (even if the method is abstract in one of the interfaces). Java forces the class to provide its own implementation for that method so that there is no ambiguity about which implementation of the method should be invoked at run time.

However I can't seem to find the "Home" interface the answer is talking about. It could be I'm simply missing something but is seems like "Home interface" should be replaced with "House interface".

Re: About Question enthuware.ocpjp.v11.2.3651 :

Posted: Fri Oct 22, 2021 11:19 am
by admin
You are right. It should be House instead of Home. Fixed.
thank you for your feedback!