Inheritence
I want to know that can we prevent our class from being inherited and if yes then how?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Dec 20, 2011, 5:01 AM
You can also prevent virtual methods from being further overridden in derived classes by adding the 'sealed' modifier.
Satyapriya NayakPosted Dec 20, 2011, 12:10 AM
Using sealed keyword we can prevent a class from being inherited.
Please refer the below link
http://www.c-sharpcorner.com/UploadFile/mahesh/SealedClasses11142005063733AM/SealedClasses.aspx
Thanks