.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?

Shrikanth Hallikhed6 reputationPosted Feb 6, 2010, 2:14 AM EST
Jagjit Patil3 reputationPosted Feb 6, 2010, 2:52 AM EST
But I wanted to know what happens under the hood when we declare any class as sealed, which prevents us inheriting it.
Do you have any idea?
Mahesh ChandRank #1 · 393.3K reputationPosted Feb 6, 2010, 4:19 AM EST
This is probably a part of parser and lexical analyzer parts of C# Compiler.
That's what I think.
srinath133 reputationPosted Feb 6, 2010, 4:19 AM EST
Is sealed class is same as final in java??
please anyone give solution to my question.
Thanx in advance..
Muhammad Fakhr Elden Sami6 reputationPosted Feb 7, 2010, 10:54 AM EST
Muhammad Fakhr Elden Sami6 reputationPosted Feb 7, 2010, 11:01 AM EST