If I have an interface IExampleInterface
:
interface IExampleInterface {
int GetValue();
}
Is there a way to provide a default implementation for GetValue()
in a child interface? I.e.:
interface IExampleInterfaceChild : IExampleInterface {
// Compiler warns that we're just name hiding here.
// Attempting to use 'override' keyword results in compiler error.
int GetValue() => 123;
}