Page 1 of 1
About Question enthuware.ocpjp.i.v11.2.3044 :
Posted: Mon Mar 02, 2020 6:48 pm
by matheusdallrosa
Hi, in my opinion the fourth option should be correct, because the @Override anotation should be when the method correctly overrides some other method, but in this case the method is not correctly overriding some other method.
Re: About Question enthuware.ocpjp.i.v11.2.3044 :
Posted: Mon Mar 02, 2020 10:26 pm
by admin
I see your point but even if you remove @override, the code will still not compile. But if you fix the access modifier of the subclass method, then it will compile. This means, the @Override is not the problem here. Since you have to select only 1 option, option 2 is best.
Re: About Question enthuware.ocpjp.i.v11.2.3044 :
Posted: Tue Mar 03, 2020 8:13 pm
by matheusdallrosa
I see your point but i was using the option to not know the amount of correct options to check. I will take what you said in consideration. Thank you.