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. difference between abstract class and interface

difference between abstract class and interface

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

    hi their, i just wanna to know the major difference between abstract class and interface... till now i knew like Abstract class will have connection of internally related method's declaration but in interface will have collection of unrelated methods... am i correct?:confused:

    L 2 Replies Last reply
    0
    • B Balaji_Reddy

      hi their, i just wanna to know the major difference between abstract class and interface... till now i knew like Abstract class will have connection of internally related method's declaration but in interface will have collection of unrelated methods... am i correct?:confused:

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      balajict wrote:

      i just wanna to know the major difference between abstract class and interface

      It's not a "major difference", but a few subtle differences. There's an article[^] on CodeProject that highlights the differences. Enjoy :)

      I are Troll :suss:

      B 1 Reply Last reply
      0
      • L Lost User

        balajict wrote:

        i just wanna to know the major difference between abstract class and interface

        It's not a "major difference", but a few subtle differences. There's an article[^] on CodeProject that highlights the differences. Enjoy :)

        I are Troll :suss:

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

        HI THEIR, :-D i gone throw the article .its good but they were explained only about how to implement and syntax differences n multiple inherit but wat i expert na why we need tat? almost both does the same thing but why we need tat apart from the given explanation ....

        L 2 Replies Last reply
        0
        • B Balaji_Reddy

          HI THEIR, :-D i gone throw the article .its good but they were explained only about how to implement and syntax differences n multiple inherit but wat i expert na why we need tat? almost both does the same thing but why we need tat apart from the given explanation ....

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Take a look at this article[^] by Microsoft.

          It's time for a new signature.

          1 Reply Last reply
          0
          • B Balaji_Reddy

            HI THEIR, :-D i gone throw the article .its good but they were explained only about how to implement and syntax differences n multiple inherit but wat i expert na why we need tat? almost both does the same thing but why we need tat apart from the given explanation ....

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            balajict wrote:

            why we need tat?

            I don't think that both have been thought up simultaneously with a distinct idea "let's use A in circumstance one and B in circumstance two". You got a sledgehammer and a warhammer, both have similar uses but different advantages and disadvantages in different situations.

            I are Troll :suss:

            L 1 Reply Last reply
            0
            • B Balaji_Reddy

              hi their, i just wanna to know the major difference between abstract class and interface... till now i knew like Abstract class will have connection of internally related method's declaration but in interface will have collection of unrelated methods... am i correct?:confused:

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              In addition to the major differences between abstract class and interface you should also aware proper use of it at proper place and requirement. Following links helps you to understand when to use abstract class and when to use interface. http://codeofdoom.com/wordpress/2009/02/12/learn-this-when-to-use-an-abstract-class-and-an-interface/[^] http://geekswithblogs.net/mahesh/archive/2006/07/05/84120.aspx[^] Hope this will help!

              Jinal Desai

              B 1 Reply Last reply
              0
              • L Lost User

                balajict wrote:

                why we need tat?

                I don't think that both have been thought up simultaneously with a distinct idea "let's use A in circumstance one and B in circumstance two". You got a sledgehammer and a warhammer, both have similar uses but different advantages and disadvantages in different situations.

                I are Troll :suss:

                L Offline
                L Offline
                Luc Pattyn
                wrote on last edited by
                #7

                subtle and instructive, I like it. :laugh:

                Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


                Prolific encyclopedia fixture proof-reader browser patron addict?
                We all depend on the beast below.


                1 Reply Last reply
                0
                • L Lost User

                  In addition to the major differences between abstract class and interface you should also aware proper use of it at proper place and requirement. Following links helps you to understand when to use abstract class and when to use interface. http://codeofdoom.com/wordpress/2009/02/12/learn-this-when-to-use-an-abstract-class-and-an-interface/[^] http://geekswithblogs.net/mahesh/archive/2006/07/05/84120.aspx[^] Hope this will help!

                  Jinal Desai

                  B Offline
                  B Offline
                  Balaji_Reddy
                  wrote on last edited by
                  #8

                  hi Jinal Desai, thanks man.now i got clear idea about it thanks again. :laugh:

                  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