About Question enthuware.ocpjp.i.v11.2.3047 :
Posted: Mon Jul 29, 2019 6:14 pm
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.
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.