+ 11
What are sealed classes in C#?
8 Respuestas
+ 5
Sealed classes are used to restrict the inheritance feature ofobject 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
csharp.net
+ 8
Brains, is it correct that -Sealed modifier used to prevent derivation from a class ?
+ 3
Sealed keyword is used to prevent a class from inheriting. It can also be used to prevent a member of a class such as method, also known as behavior, from overriding
+ 3
sealed keyword is used to prevent other classes to inherite it
+ 3
sealed class will prevent the class from inheriting. It can be also used in method overriding to prevent overridding by the derived class.
+ 2
Sealed is a type of modifier that restricts inheritance. Similar how final is a constant and private restricts interface of the client from directly accessing data without a method.
+ 1
Sealed is a keyword which uses in the class or method for not to inherit by the other class
+ 1
sealed is a keyword used in c# inorder to prevent inheritance which is a key feature of object oriented programming language