Page 1 of 1

About Question enthuware.ocajp.i.v8.2.1481

Posted: Thu Feb 20, 2025 7:32 pm
by shear12345
The correct answer to this question does not specify an access modifier; whereas the method in the super does. This is what tripped me up, because I avoided the correct answer; with my line of thinking being that you can't change the access to more restrictive when overriding. However, since we are dealing with interfaces here, the default access when not specified is public. I think it is important to point this out in the explanation of why this is the correct answer. Just thought I'd share my input.

Re: About Question enthuware.ocajp.i.v8.2.1481

Posted: Fri Feb 21, 2025 12:25 am
by admin
Good point. Should be added in the explanation.

thank you for your feedback!