Method (computer programming): Difference between revisions

Content deleted Content added
Line 104:
public override abstract void M(); // allowed
}
</syntaxhighlight>
 
<syntaxhighlight lang="csharp">
interface IA
{
void M() { }
}
interface IB : IA
{
abstract void IA.M();
}
class C : IB { } // error: class 'C' does not implement 'IA.M'.
</syntaxhighlight>