About Question enthuware.ocpjp.i.v11.2.3037 :
Moderator: admin
-
- Posts: 10
- Joined: Fri Jun 28, 2019 10:58 am
- Contact:
About Question enthuware.ocpjp.i.v11.2.3037 :
One of the answers for this question is :
@Override
void moo();
My question is if I do not provide the @override sign, will it be considered as override considering both the moo() methods are in two different interface ?
Specifically for this question, If I define another class that implements both the interfaces- my question is- will it override both the interfaces or just the @override sign interfaces, ? Thank you.
@Override
void moo();
My question is if I do not provide the @override sign, will it be considered as override considering both the moo() methods are in two different interface ?
Specifically for this question, If I define another class that implements both the interfaces- my question is- will it override both the interfaces or just the @override sign interfaces, ? Thank you.
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3037 :
Please post exact code to show what you are talking about to make sure we understand your query correctly before answering.
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3037 :
@Override annotation is optional, FYI. It is not required. If a method is a valid override, then it is a valid override irrespective of the annotation.
-
- Posts: 10
- Joined: Thu Jun 04, 2020 3:19 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3037 :
Hello,
yesterday I downloaded the latest 1z0-815.ets file from your web site. You indicate as correct answer:
private void foo(){ };
but when I show it into my application I saw it like "private void foo()[];". If I'm copying and pasting it, finally I can see {}. Why? i'm looking forward to reading an answer from you. Thanks for your support. Have a good day and a good work.
yesterday I downloaded the latest 1z0-815.ets file from your web site. You indicate as correct answer:
private void foo(){ };
but when I show it into my application I saw it like "private void foo()[];". If I'm copying and pasting it, finally I can see {}. Why? i'm looking forward to reading an answer from you. Thanks for your support. Have a good day and a good work.
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3037 :
I am sorry, I did not understand your question. Are u saying that you see [ ] instead of { } ? Please post a screenshot.
-
- Posts: 10
- Joined: Thu Jun 04, 2020 3:19 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3037 :
Hello, it should be correct: the line shadows the correct {}. See the attachment
- Attachments
-
- Image.jpg (3.89 KiB) Viewed 2372 times
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3037 :
No, that is correct. It is { }. But you have a strike through on that line that is why you are seeing [ ]. The ----- is hiding the middle part. So, { } looks like { }.
Who is online
Users browsing this forum: No registered users and 7 guests