Basic and Advance Programming Question:

Can a method be overloaded based on different return type but same argument type in programming?

Tweet Share WhatsApp

Answer:

No, method can not be overloaded because the methods can be called without using their return type in which case there is ambiguity for the compiler in programming languages.

Download Programming PDF Read All 34 Programming Questions
Previous QuestionNext Question
What is Downcasting in Programming?What are the advantages of OOPL in a programming language?