About Question enthuware.ocpjp.v11.2.3651 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
GaiusCaesar
Posts: 1
Joined: Fri Oct 15, 2021 2:23 am
Contact:

About Question enthuware.ocpjp.v11.2.3651 :

Post 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".

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. It should be House instead of Home. Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 50 guests