Xpode.com        Click here to Print this article.

Can you prevent your class from being inherited and becoming a base class for some other classes

Yes, that’s what keyword sealed in the class definition is for. The developer trying to derive from your class will get a message: cannot inherit from Sealed class.


[Sealed]
Class Classname{

}






Contributed by:
Guest
Guest user is that user who have done some activity on website without login. Activity contains commenting on any article, uploading an image on website etc.

Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=266

Click here to go on website