Interviews1 answer
Can we avoid implementation of all methods of interfaces ?
1 Answer
Ans: yes, if a class implements interface partially then it should be declared as abstract.
abstract class MyClass : IMyInterface
{
public void fun1()
{
throw new NotImplementedException();
}
public abstract void fun2();
}
Rajesh SinghPosted Dec 1, 2015, 2:13 AM EST
