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

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -