NET - What is an Interface in NET?

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();
}
NET - Define most commonly used interfaces in Net Framework
Define most commonly used interfaces in .Net Framework - IComparable, IDisposable, IConvertible, ICloneable, IEquatable, IFormattable......
NET - Explain how to create and consume a Generic type.
Answer - Explain how to create and consume a Generic type.....
NET - What is Type Forwarding in NET?
What is Type Forwarding in NET? - Type forwarding is a technique to move types from one assembly to another......
Post your comment