C Sharp (C#) - Interfaces
What will happen if you try to compile this code?
interface ITest { void Run(); }
class Test : ITest { }interface ITest { void Run(); }
class Test : ITest { }Test declares : ITest but lacks Run(), causing compilation error: 'Test' does not implement 'Run()'.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions