Inheriting a sealed class
Is there any way to inherit a sealed class?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 7, 2013, 7:55 PM EDT
No. Sealed Class can't be inherited. It is used to prevent derivation from a class. Always declare a new class as sealed until you are writing an abstract class or a class which must be inherited per design.
For more information please check the below link
http://msdn.microsoft.com/en-us/library/ms173150(v=vs.80).aspx
Regards,
Iftikar
Jignesh TrivediRank #16 · 50.3K reputationPosted Jul 7, 2013, 7:55 PM EDT
Hi,
As per my knowledge, Sealed class is internally design in such a way that you can not inheriting other classes from sealed class.
why you required this?
can you please provide more details so that we can provide you alternative...
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 7, 2013, 8:45 PM EDT
http://www.c-sharpcorner.com/UploadFile/mahesh/SealedClasses11142005063733AM/SealedClasses.aspx