Basic and Advance Programming Question:
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.
Previous Question | Next Question |
What is Downcasting in Programming? | What are the advantages of OOPL in a programming language? |