1.

What Are Sealed Classes In C#?

Answer»

The sealed modifier is USED to PREVENT derivation from a class. A compile-time ERROR occurs if a sealed class is specified as the BASE class of ANOTHER class. (A sealed class cannot also be an abstract class)

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



Discussion

No Comment Found