WHAT IS THE SEALED CLASS IN C#?

Manasavi Rajpoot

Total Post:19

Points:95
Posted by  Manasavi Rajpoot
C# 
C#
 1683  View(s)
Ratings:
Rate this:
  1. Manasavi Rajpoot

    Post:19

    Points:95
    what is the sealed class in c#?

    A sealed class cannot be inherited. It is an error to use a sealed class as a base class. Use the sealed modifier in a class declaration to prevent inheritance of the class.

  1. Amit Singh

    Post:565

    Points:2825
    what is the sealed class in c#?

    Sealed class is a class  which can’t inherited any more. “Sealed” keyword is used to make class Sealed.  So, once we define a class using Sealed that can’t be inherited. 

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!