Answer Posted / rishu
Sealed classes are used to restrict the inheritance feature of object oriented programming. Once a class is defined as sealed class, this class cannot be inherited.
In C#, the sealed modifier is used to define a class as sealed. In Visual Basic .NET, NotInheritable keyword serves the purpose of sealed. If a class is derived from a sealed class, compiler throws an error.
If you have ever noticed, structs are sealed. You cannot derive a class from a struct.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is post back c#?
How do I count the length of a string in c#?
How do I create a multi language, multi file assembly?
What is dao in c#?
What is interface inheritance?
What is difference between for and foreach in c#?
What is the difference between abstraction and encapsulation in c#?
What is a nested type. Give an example?
Do while loops yes or no c#?
What is anonymous methods in c#?
What is a three-tier application.
How do I open the console?
Which is executed if an exception has not occurred?
What are the main reasons to use c# language?
What is the use of flag in c#?