In C#, can you prevent a class from being inherited by another class? If so, how do you do it? And why would you want to do it?
In C#, can you prevent a class from being inherited by another class? If so, how do you do it? And why would you want to do it?
1 Comment so far
Leave a comment
This can be done by making constructors of the class private and making use of Named constrcutors for the class
By say it on 06.28.07 2:07 am | Permalink
Leave a comment
If you are including code in your comment, place it within a <div class='code'></div> tag for better formatting.