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