6
Reply

Why It is not allowed to inherit sealed class

Jagjit Patil

Jagjit Patil

Feb 6 2010 6:38 AM
6.6k
Hi all!
.Net framework doesn't allow us to inherit a Sealed class.
I want to know how it restricts us to inherit a sealed class? I mean what is the difference between normal class and a sealed class because of which, we can't inherit sealed class?
e.g. I am ensuring that I am not going to inherit a class in my application and I am also assured that, nobody will use this class as a base class. Then is it makes any difference if I declare it as a sealed class?

Answers (6)