Hi,
Ques Can you prevent your class from being inherited ?
Prevent your class from being inherited
2 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
darma tejaRank #3,199 · 449 reputationPosted Mar 21, 2012, 4:08 AM EDT
Just use selaed key word bofore class name.
sealed class cannot be used as a base class.
Darma
VulpesRank #55 · 29.2K reputationPosted Mar 21, 2012, 6:48 AM EDT