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. .NET (Core and Framework)
  4. difference between interface and abstract class in c#

difference between interface and abstract class in c#

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharp
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.
  • M Offline
    M Offline
    Mukesh21
    wrote on last edited by
    #1

    difference between interface and abstract class in c#

    P S 2 Replies Last reply
    0
    • M Mukesh21

      difference between interface and abstract class in c#

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Have you never been taught how to search for your own information? The three questions you have asked here could all be answered with simple Google searches.

      This space for rent

      1 Reply Last reply
      0
      • M Mukesh21

        difference between interface and abstract class in c#

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

        1)ABSTRACT CLASS -It contains both declaration and definition part. -Multiple inheritance is not achieved by abstract class. -It contain constructor. -It can contain static members. -A class can only use one abstract class. -It can be fully, partially or not implemented. -An abstract class can have non-abstract methods. 2)INTERFACE -It contains only a declaration part. -Multiple inheritance is achieved by interface. -It does not contain constructor. -It does not contain static members. -A class can use multiple interface. -It should be fully implemented. -Interface has only abstract methods.

        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