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

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now