c# - Overload 2 methods with same name and same parameter types -


i got 2 methods same name , same parameter types. want overload those, not work because getting error:

"<class-name> defines member called 'changeprofileinformation'   same parameter types" 

i have this:

public void changeprofileinformation(user user) {       b }  public void changeprofileinformation(user user) {       c    d } 

does know why doesn't work?

thanks in advance!

overloading means using same function name doing different things. 2 function should have different signature otherwise compiler cant differentiate. must have different signature.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -