What is an Interface in NET? Explain with an example using C#.NET.
Interface contains only the declaration for its abstract members (events, methods, properties). Any implementation must be placed in class that implements them. Interface is the only way that lets us the implement multiple inheritance. The interface cannot contain constants, data fields, constructors and destructors.
interface ITest
{
string Text
{
get;
set;
}
string printString();
}