What restrictions are placed on method overloading

Two methods may not have the same name and argument list but different return types.

Showing Answers 1 - 2 of 2 Answers

dantheman

  • Jun 19th, 2005
 

The two method can't have an identical argument list.

  Was this answer useful?  Yes

depiks

  • Sep 12th, 2005
 

Two methods must have same name with different argument list , different return types. Only different return types is not sufficient.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions