Object-oriented programming (OOPs) Question:

Download Job Interview Questions and Answers PDF

What is Sealed modifiers?

OOP Interview Question
OOP Interview Question

Answer:

Sealed types cannot be inherited & are concrete.
Sealed modifiers can also be applied to instance methods, properties, events & indexes. It can't be applied to static members.

Sealed members are allowed in sealed and non-sealed classes.

Download OOP Interview Questions And Answers PDF

Previous QuestionNext Question
When to use Interface over abstract class?What is Inheritance?