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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. interface and abstract class

interface and abstract class

Scheduled Pinned Locked Moved .NET (Core and Framework)
5 Posts 4 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
    Member 4708077
    wrote on last edited by
    #1

    when we use the abstract class nad when we use the interface int applictions

    raja

    G B 2 Replies Last reply
    0
    • M Member 4708077

      when we use the abstract class nad when we use the interface int applictions

      raja

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      Google not working for you? There are many many results available: Google[^]

      #region signature my articles #endregion

      1 Reply Last reply
      0
      • M Member 4708077

        when we use the abstract class nad when we use the interface int applictions

        raja

        B Offline
        B Offline
        bwilhite
        wrote on last edited by
        #3

        I'm assuming your question is more of a design question (where Google might not help much), as opposed to a simple question of what each is... Personally, I tend to favor interfaces over abstract classes. I tend to use an abstract class only when I want to implement something like the template design pattern. I've been steadily moving towards keeping my objects more loosely-coupled, which interfaces help to do quite nicely. With an abstract class, however, that's not really true. Hope that helps a bit. BW

        M 1 Reply Last reply
        0
        • B bwilhite

          I'm assuming your question is more of a design question (where Google might not help much), as opposed to a simple question of what each is... Personally, I tend to favor interfaces over abstract classes. I tend to use an abstract class only when I want to implement something like the template design pattern. I've been steadily moving towards keeping my objects more loosely-coupled, which interfaces help to do quite nicely. With an abstract class, however, that's not really true. Hope that helps a bit. BW

          M Offline
          M Offline
          Mark Churchill
          wrote on last edited by
          #4

          An interface is more of a service contract, whereas an abstract class is a base set of functionality which is useless by itself.

          Mark Churchill Director Dunn & Churchill Free Download:
          Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.

          B 1 Reply Last reply
          0
          • M Mark Churchill

            An interface is more of a service contract, whereas an abstract class is a base set of functionality which is useless by itself.

            Mark Churchill Director Dunn & Churchill Free Download:
            Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.

            B Offline
            B Offline
            bwilhite
            wrote on last edited by
            #5

            Yep, exactly. It took me a year to really get that.

            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