Yes, or something like that, which, of course, aims at a completely different design goal, and you could say that this is actually another interface due to the polymorphic nature of inheritance, but still:
public interface IEntity
{
void DoTask();
}
public interface IExtendedTaskEntity : IEntity
{
void DoExtendedTask();
}
public class ConcreteEntity : IExtendedTaskEntity
{
#region IExtendedTaskEntity Members
public void DoExtendedTask()
{
throw new NotImplementedException();
}
#endregion
#region IEntity Members
public void DoTask()
{
throw new NotImplementedException();
}
#endregion
}
source
share