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".
About Question enthuware.ocpjp.v11.2.3651 :
Moderator: admin
-
- Posts: 1
- Joined: Fri Oct 15, 2021 2:23 am
- Contact:
-
- Site Admin
- Posts: 10061
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v11.2.3651 :
You are right. It should be House instead of Home. Fixed.
thank you for your feedback!
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: gadsgadsx and 101 guests