We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Interface

VBdotnet2005
VBdotnet2005 asked
on
Medium Priority
216 Views
Last Modified: 2010-04-23
Could someone explain what Interface is, in what occasion do we use it  and a simple example? Thank you in advance.
Comment
Watch Question

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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.