What will happen,if we compile below function?

private double sum(int a, int b)
{
}

private double sum(int i, int j)
{
}

Note:- In above both function return type is same as Double.

 Posted by vishalneeraj-24503 on 11/29/2013 | Category: OOPS Interview questions | Views: 3482 | Points: 40
Answer:

If we compile above function,then it will throw an error saying that:-

Type '_Default' already defines a member called 'sum' with the same parameter types.


Here _Default is a page name.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response