2
Reply

What is sealed class?

Amit Das

Amit Das

17y
7.2k
0
Reply

    when youn want to provide security for the class.you declare sealed class.If you declare sealed class the class can not inerited to other class.

    The sealed modifier is used to prevent derivation from a class. An error occurs if a sealed class is specified as the base class of another class. A sealed class cannot also be an abstract class.