Try my app Expense Manager @ google play and amazon store.

Sunday, July 1, 2012

Prevent class from being inherited in C#.NET


How to prevent a class from being inherited in C#.NET?


The sealed modifier is used to prevent derivation from a class. An error occurs if a sealed class is specified as the base class of another class. A sealed class cannot also be an abstract class.


No comments:

Post a Comment

Follow by Email

Google+ Badge