in C Sharp by

What are sealed classes in C#?

▼ Show 1 Answer

0 votes

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

Learn More with Madanswer

Related questions

+1 vote
asked Jan 20, 2020 in C Sharp by AdilsonLima