tech/webdev magazine

October 3, 2015

C# Interview Questions And Answers

Saturday, October 03, 2015 Teklinks

1. What is sealed class in C#? Sealed classes are used to restrict the inheritance feature of object oriented programming. Once a class is defined as a sealed class, the class cannot be inherited. In C#, the sealed modifier is used to define a class as sealed. In Visual Basic .NET the NotInheritable keyword serves the purpose of sealed. If a class is derived from a sealed class then the compiler throws an error.

Full article