Page 1 of 1

About Question enthuware.ocpjp.i.v11.2.3047 :

Posted: Mon Jul 29, 2019 6:14 pm
by zunayeed
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.

Re: About Question enthuware.ocpjp.i.v11.2.3047 :

Posted: Mon Jul 29, 2019 9:12 pm
by admin
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.