About Question enthuware.ocajp.i.v8.2.1481
Posted: Thu Feb 20, 2025 7:32 pm
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.