About Question enthuware.ocpjp.v21.2.3096 :
Posted: Sun Dec 21, 2025 3:48 pm
Hi,
When we see a code with generics in super class and the sub class is overriding it, should we directly eleminate options like 1 and 2?
Because overriding class' method also have to be generic? Is this the reason option 1 and 2 eleminated? otherwise, what is the difference between option 1 and 3? Thanks.
When we see a code with generics in super class and the sub class is overriding it, should we directly eleminate options like 1 and 2?
Because overriding class' method also have to be generic? Is this the reason option 1 and 2 eleminated? otherwise, what is the difference between option 1 and 3? Thanks.