Can i override an abstract method written in a parent class, with a different name in a child class?
- by Ranhiru
abstract class SettingSaver
{
public abstract void add(string Name, string Value);
public abstract void remove(string SettingName);
}
class XMLSettings : SettingSaver
{
public override void add(string Name, string Value)
{
throw new NotImplementedException();
}
public override void remove(string SettingName)
{
throw new NotImplementedException();
}
}
Is there anyway that I can change the name of the add function in XMLSettings class to addSetting but make sure it overrides the add function in the SettingSaver? I know it should be definitely overridden in derived classes but just want to know whether I can use a different name :) Thanx in advance :D