About Question enthuware.ocpjp.i.v11.2.3041 :
Posted: Tue Apr 30, 2019 6:55 am
Hello,
For this question, you have marked that line //3 is causing a compilation error as a correct answer. But I think it actually is line //4 with that correct explanation as well.
Line //3 is abstract class PowerTool implements Tool{ } //3
So a call implements an interface (Tool) .. This is correct
Line //4 is : class PowerSaw implements PowerTool{ //4
So class implements a class... this is not correct.
So in my opinion, line 4 not line 3 is causing a problem here.
Please let me know your opinions.
Thank you,
Laurentiu
For this question, you have marked that line //3 is causing a compilation error as a correct answer. But I think it actually is line //4 with that correct explanation as well.
Line //3 is abstract class PowerTool implements Tool{ } //3
So a call implements an interface (Tool) .. This is correct
Line //4 is : class PowerSaw implements PowerTool{ //4
So class implements a class... this is not correct.
So in my opinion, line 4 not line 3 is causing a problem here.
Please let me know your opinions.
Thank you,
Laurentiu