Computer Science, asked by vrindashageela3128, 11 months ago

What is covariant return type in Java?

Answers

Answered by Aagmansriva993
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