Object-oriented programming (OOPs) Question:
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.
Previous Question | Next Question |
When to use Interface over abstract class? | What is Inheritance? |