Which of the following statements is correct about the C#.NET code snippet given below? interface IMyInterface { void fun1(); int fun2(); } class MyClass: IMyInterface { void fun1() { } int IMyInterface.fun2() { } }
Correct Answer: The definition of fun1() in class MyClass should be void IMyInterface.fun1().
Discussion & Comments