Interface

Could someone explain what Interface is, in what occasion do we use it  and a simple example? Thank you in advance.
VBdotnet2005Asked:
Who is Participating?
 
razorback041Commented:
basically an interface is like  contract...its tells the implementing class what methods can be used, but not HOW to use them..the implemenation of those methods are left up to the class.  Also interfaces can allow for multiple inheritence, whereas a class can only inherit one other class.  You can use interfaces when classes may implement similar methods differently.  this is a very simple explanation...I would suggest reading more about it.  Here are a few articles with some examples.  

http://www.informit.com/articles/article.asp?p=28482&seqNum=8&rl=1
http://builder.com.com/5100-6373-5030734.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.