Know the answer? Post it. Somebody with the same question will find it here.
Abhishek JaiswalRank #126 · 17.4K pointsPosted Aug 24, 2014, 4:13 AM EDT
0
Hey!
Interface is a type which contains only the signatures of methods, delegates or events, it has no implementation.
Interface is a contract that defines the signature of the functionality. So if a class is implementing a interface it says to the outer world, that it provides specific behavior. Ex:
Abhishek JaiswalRank #126 · 17.4K pointsPosted Aug 24, 2014, 4:13 AM EDT
Ex:
Output: Hello C# Corner
for more detailed study, visit
http://www.codeproject.com/Articles/18743/Interfaces-in-C-For-Beginners
http://www.c-sharpcorner.com/UploadFile/sekarbalag/interface-best-example-in-csharp/