Saturday, December 17, 2011

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

List of Asked Interview Questions: C# .NET SQL MVC WCF Questions