What are covariant return types in Java?
Answers
Answered by
0
Covariant return type refers to return type of an overriding method. ... 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.
Similar questions
English,
6 months ago
Computer Science,
6 months ago
Hindi,
6 months ago
Computer Science,
1 year ago
English,
1 year ago