Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




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{

}

Share this article   |    Print    |    Article read by 962 times
Author:
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.
Related Articles: No related article
Related Interview Questions: