| Next Tip?
Home » CSharp, Microsoft .Net

Define interface in own words.

22 May 2011 675 views No Comment
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

We have many books around, anyone can get a definition of interface which is nothing but bookish. In these days we are more interested to know what you know about interfaces rather than what you read for interfaces?

Here, I tried to cover interfaces in my own words:

Interface

An interface is simply a collection of function prototypes. An Interface is a reference type like a class, but interface can contain only abstract members. In other words, Interface is a contract that defines the signature of the functionality.

An interface looks like a class definitions, but its only purpose is to define a set of methods and not to implement them. For this reason the interface definition includes only the definition of methods [in other words the abstract methods]. Interface contains only methods, properties and delegates but can not contain fields, constructors, destructor and any type of static members.

For more details and example refer to : http://gauravarora.indiamentor.com/Chapters/csharplanguageii.htm

Popularity: 8% [?]

Related interview questions

Leave your response!

You must be logged in to post a comment.