I would like to do the same thing I do in Java with the final keyword. I tried to use the const keyword, but it doesn’t work. How can I prevent other classes from inheriting from my class?
I would like to do the same thing I do in Java with the
Share
The keyword you are searching is ‘sealed’.
MSDN