About Question enthuware.ocajp.i.v8.2.1481
Moderators: Site Manager, fjwalraven
-
- Posts: 18
- Joined: Wed Feb 12, 2025 4:56 pm
About Question enthuware.ocajp.i.v8.2.1481
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.
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1481
Good point. Should be added in the explanation.
thank you for your feedback!
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 6 guests