Qus:    What is Sealed?
Nov 21, 2020 19:01 DotNet 2 Answers Views: 1393 SAI

The sealed keyword is used as a modifier declare a class as sealed. Sealed classes are used to restrict the inheritance feature of object oriented programming. Once a class is defined as a sealed class, this class cannot be inherited.

Prev Next
Answers (2)
TEJA Nov 23, 2020 14:04
Answer:   It’s a restrictions of class and methods. Sealed class cannot be derived and Sealed method cannot be overridden.

PARTH Nov 23, 2020 15:29
Answer:   The sealed keyword is used as a modifier declare a class as sealed. Sealed classes are used to restrict the inheritance feature of object oriented programming. Once a class is defined as a sealed class, this class cannot be inherited.

Post Your Answer
Guest User

Not sure what solution is right for you?

Choose the right one for you.
Get the help of the experts and find a solution that best suits your needs.


Let`s Connect