如果我有一个界面IExampleInterface
:
interface IExampleInterface {
int GetValue();
}
有没有办法GetValue()
在子接口中提供默认实现?IE:
interface IExampleInterfaceChild : IExampleInterface {
// Compiler warns that we're just name hiding here.
// Attempting to use 'override' keyword results in compiler error.
int GetValue() => 123;
}