What are sealed classes in C#?
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.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
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