Object-oriented programming (OOPs) Question:
Download Job Interview Questions and Answers PDF
What is Sealed modifiers?
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.
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 Question | Next Question |
When to use Interface over abstract class? | What is Inheritance? |