Computer Science, asked by naveengnaveen1572, 11 months ago

What are sealed modifiers in C#?

Answers

Answered by kishansavani
0

Answer:

sealed

Explanation:

When you use sealed modifiers in C# on a method, then the method loses its capabilities of overriding. The sealed method should be part of a derived class and the method must be an overridden method.

Answered by bhatfazil6126
0

Answer:

When applied to a class, the sealed modifier prevents other classes from inheriting from it. In the following example, class B inherits from class A , but no class can inherit from class B . You can also use the sealed modifier on a method or property that overrides a virtual method or property in a base class.

Similar questions