C# functions signatures

Question posted in Computer Software on 06 2010
Rate question difficulty level 1 Votes
a class contains the following functions:
private long func(string a)
{
return 0;
}

private int func(string a)
{
return 0;
}

private long func(int b)
{
return 0;
}

private string func(string a)
{
return string.Empty;
}

is this class will compile / fail at runtime?
if so , why?
 
 
1 Answer
 
the following functions are the source of the problem:
private int func(string a);
private string func(string a);


because the func(string a) can appear only once , regardless to the function's return value

06/09/2010
 
 
Add an answer*
 
Your name
Email
 
Company: iForex
Location: Israel
C# Object Oriented

add a question

arrow_blue


Now hiring!
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------