So, I recently came across this C # statement:
public new string SomeFunction(int i)
{
return base.SomeFunction(i);
}
I searched on the Internet, but I think I can find a better answer here.
Now I assume that all this returns a new line with the same value as the line returned by the call base.SomeFunction(i)... is this correct?
Also, does this function exist in other languages (specifically for java)?
EDIT:
In my particular case, it base.SomeFunctionis protected and NOT virtual ... does it matter? Thanks
source
share