Qus:    What is Sealed?
Nov 21, 2020 13:01 2 Answers Views: 629 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 08: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 09: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 course is right for you?

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


Let`s Connect