Which of the following statements is correct about an interface used in C#.NET?
A. If a class implements an interface partially, then it should be an abstract class.
B. A class cannot implement an interface partially.
C. An interface can contain static methods.
D. An interface can contain static data.
E. Multiple interface inheritance is not allowed.
A. eg:
public interface myinterface
{
void a();
void b();
}
public abstract class myclass : myinterface
{
public void a()
{
///do something
}
public abstract void b(); // keep this abstract and then implement it in child class
}