What is covariant return type in Java?
Answers
Answered by
0
Covariant return type refers to return type of an overriding method. ... Covariant return type works only for non-primitive return types. From Java 5 onwards, we can override a method by changing its return type only by abiding the condition that return type is a subclass of that of overridden method return type.
please mark me brainliest
I also follow you...
Similar questions
Math,
7 months ago
Math,
7 months ago
English,
7 months ago
Math,
1 year ago
Computer Science,
1 year ago