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
What are predicates in c#?
Is as operator in c#?
Is dictionary a collection?
List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.
Is datetime nullable c#?
Is array value type in c#?
Is c# scripting language?
What exactly happens when we debug and build the program?
What language is c# similar to?
Why should I use interface in c#?
If you want to write your own dot net language, what steps you will u take care?
What is the difference while using directive vs using statement ?
Which operator cannot be overloaded in c sharp?
Is 0 an unsigned integer?
What are the delegates in c#?