Can you prevent your class from being inherited by another class?

Options
- Yes. The keyword “Prevent” will prevent the class from being inherited.
- Yes. The keyword “Abstract” will prevent the class from being inherited.
- Yes. The keyword “Static” will prevent the class from being inherited.
- Yes. The keyword “sealed” will prevent the class from being inherited.


CORRECT ANSWER : Yes. The keyword “sealed” will prevent the class from being inherited.

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement