Rajesh Singh
Q: will this code compile ? interface IMyInterface { void fun1(); void fun2(); } class MyClass : IMyInterface { void IMyInterface.fun1() { throw new NotImplementedException(); } void IMyInterface.fun2() { throw new NotImplementedException(); } }
By Rajesh Singh in .NET on Dec 01 2015
  • Vineet Kumar
    Jan, 2017 13

    No. It will throw up exception

    • 0
  • Rajesh Singh
    Dec, 2015 1

    Ans: yes. fun1 and fun2 should be accessible through interface name if access modifier is private.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS