Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
6
Reply
Why It is not allowed to inherit sealed class
Jagjit Patil
Feb 6 2010 6:38 AM
6.6k
Reply
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?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
update the gv
making thought of the day block in web site