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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -