Question OOP-POLY-0013
MediumCan a method be overloaded only by changing its return type?
- A.
Only for static methods
- B.
Only in Java
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Polymorphism question
Can a method be overloaded only by changing its return type?
Only for static methods
Only in Java
Sign up free to see the answer and a step-by-step explanation.
Yes, always
No, the parameter list must differ