Qus:    What is covariant return type?
Aug 13, 2021 07:28 1 Answers Views: 384 ROHAN
Prev Next
Answers (1)
SANJAY Dec 24, 2021 03:54
Answer:   Covariant return type refers to return type of an overriding method. It allows to narrow down return type of an overridden method without any need to cast the type or check the return type. Covariant return type works only for non-primitive return types.

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect