About Question enthuware.ocpjp.v11.2.3651 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

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: 10384
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!

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests