Basic and Advance Programming Question: Download Questions PDF
Can a method be overloaded based on different return type but same argument type in programming?
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 Interview Questions And Answers
PDF
Previous Question | Next Question |
What is Downcasting in Programming? | What are the advantages of OOPL in a programming language? |