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. interface vs abstract class

interface vs abstract class

Scheduled Pinned Locked Moved C#
visual-studio
3 Posts 3 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.
  • P Offline
    P Offline
    psamy
    wrote on last edited by
    #1

    how will you differentiate interface and abstract class.

    J S 2 Replies Last reply
    0
    • P psamy

      how will you differentiate interface and abstract class.

      J Offline
      J Offline
      Jonathan van de Veen
      wrote on last edited by
      #2

      An interface can't contain any behaviour (it doesn't have any method bodies). An abstract class can have some behaviour allready defined and can allready store properties into fields, etc.. Choosing wich one to use realy depend on your situation.

      1 Reply Last reply
      0
      • P psamy

        how will you differentiate interface and abstract class.

        S Offline
        S Offline
        SeMartens
        wrote on last edited by
        #3

        Hi psamy, what do you mean exactly? Using a naming convention myself an interface starts with a capital I (I think MS does it the same way). Was this your question? Regards Sebastian

        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