Object-oriented programming (OOPs) Question: Download OOP PDF

What is Sealed modifiers?

Tweet Share WhatsApp

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 PDF Read All 37 OOP Questions
Previous QuestionNext Question
When to use Interface over abstract class?What is Inheritance?