What are the restrictions in interface in C#

Posted by Jitendrasoft09 under C# on 6/25/2013 | Points: 10 | Views : 2017 | Status : [Member] [MVP] | Replies : 1
Hi All,
I want to understand about restrictions in interface in C#, please explain with example

Jitendra Kumar
If my post helps you, plz mark as an answer.


Posted by: Satyapriyanayak on: 6/27/2013 [Member] [MVP] Silver | Points: 25


1) Interfaces cannot be instantiated directly.
2) Interfaces can contain events, method, indexer and properties.
3) An Interface can contain property definitions.
4) Interfaces contain no implementation of methods.
5) Classes and Structs can implement more than one interface.
6) An Interface can be inherited from by structures.
7) An interface itself can inherit from multiple interfaces (Interface can support multiple
8) If we add a new method to an Interface then we have to track down all the implementations of
the interface and define implementation for the new method.

If this post helps you mark it as answer

Jitendrasoft09, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response