Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. question about interface

question about interface

Scheduled Pinned Locked Moved C#
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    abstar
    wrote on last edited by
    #1

    hi guys: can everyone tell me, what is interface, why do we use interface and when do we use interface? thanks

    E 1 Reply Last reply
    0
    • A abstar

      hi guys: can everyone tell me, what is interface, why do we use interface and when do we use interface? thanks

      E Offline
      E Offline
      Ed Poore
      wrote on last edited by
      #2

      A quick Google[^] would reveal the answer.  Ok the page is in VB but it demonstrates the concept, basically an interface is a contract.  When you implement an interface you are basically signing an agreement that you will implement all the fields, properties and methods defined in the interface.  You can then rather than dealing with definite objects you can deal with the common interface without having to know what the underlying type is. It's commonly used in plug in[^] based systems.


      My Blog[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups