In one of the wrong options, it is given like
B must not be final.
Explanation: Since B must be a sub type of A, A cannot be final.
I understand, A can not be final. Does it mean B must not be final ? Can you please explain this part ?
As far as I know, though a final class cannot be extended, it can extend other classes. In simpler words, a final class can be a sub class but not a super class.
Thank you.
About Question enthuware.ocpjp.i.v11.2.3047 :
Moderator: admin
-
- Posts: 10
- Joined: Fri Jun 28, 2019 10:58 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.i.v11.2.3047 :
Your understanding is correct. So what is the problem? B is a subclass. It may or may not be final. That is why it is a wrong option.
Who is online
Users browsing this forum: No registered users and 18 guests