locked
C#.NET Difference Between Abstract Class And Sealed Class

    Question

  • Hi Experts,

    What is Difference Between Abstract Class And Sealed Class in C#?

    Thanks.
    "Knowledge Shared Is Knowledge Gained"
    • Edited by Vijay Jadhav Friday, September 18, 2009 12:24 PM
    Friday, September 18, 2009 11:38 AM

Answers

  • First of all, this has nothing to do with ASP.NET, so skip that for a second.

    A sealed class is a class that cannot be inherited any further. An abstract class is a class that must be inherited an cannot be used on it's own (a base class).
    Geert van Horrik - CatenaLogic
    Visit my blog: http://blog.catenalogic.com

    Looking for a way to deploy your updates to all your clients? Try Updater!
    Friday, September 18, 2009 11:45 AM

All replies

  • First of all, this has nothing to do with ASP.NET, so skip that for a second.

    A sealed class is a class that cannot be inherited any further. An abstract class is a class that must be inherited an cannot be used on it's own (a base class).
    Geert van Horrik - CatenaLogic
    Visit my blog: http://blog.catenalogic.com

    Looking for a way to deploy your updates to all your clients? Try Updater!
    Friday, September 18, 2009 11:45 AM
  • Hi Geert van Horrik,

    Thanks for reply.

    Check out the modification.


    "Knowledge Shared Is Knowledge Gained"
    Friday, September 18, 2009 12:41 PM
  • Hi Experts,

    Does anybody know other differences ?

    Thanks.

    "Knowledge Shared Is Knowledge Gained"
    Friday, September 18, 2009 12:42 PM
  • Thanks for changing the title, it helps others in the future to find your post when to have a similar issue. Is your issue solved or do you have any other questions?
    Geert van Horrik - CatenaLogic
    Visit my blog: http://blog.catenalogic.com

    Looking for a way to deploy your updates to all your clients? Try Updater!
    Friday, September 18, 2009 12:42 PM
  • Hi Geert van Horrik,

    Thanks to you not me.

    I need to know all the differences right from scratch!

    Thanks.



    "Knowledge Shared Is Knowledge Gained"
    Friday, September 18, 2009 12:45 PM
  • In that case, I recommend you to read up the documentation:

    sealed
    abstract
    Geert van Horrik - CatenaLogic
    Visit my blog: http://blog.catenalogic.com

    Looking for a way to deploy your updates to all your clients? Try Updater!
    Friday, September 18, 2009 12:47 PM
  • Hi,

    Thanks. I will right back with details.

    "Knowledge Shared Is Knowledge Gained"
    Friday, September 18, 2009 12:49 PM
  • Hi Geert van Horrik,

    Thanks.
    "Knowledge Shared Is Knowledge Gained"
    Friday, September 18, 2009 1:22 PM