[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Interface

Posted on 2006-03-29
1
Medium Priority
?
200 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.
0
Comment
Question by:VBdotnet2005
1 Comment
 
LVL 5

Accepted Solution

by:
razorback041 earned 1500 total points
ID: 16326079
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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question