Q:

What are sealed classes in C#?

0

What are sealed classes in C#?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

We create sealed classes when we want to restrict the class to be inherited. The sealed modifier used to prevent derivation from a class. If we forcefully specify a sealed class as the base class, then a compile-time error occurs.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now