In method overriding, is it mandatory for the return type of the subclass method to be the same as the superclass method?
A. Yes, it must be the same
B. No, it can be different
C. It depends on the access modifier
D. It depends on the method name
Answer: Option A
Join The Discussion