what is the sealed class in c#?

Total Post:9

Points:45
C# 
C#
 1943  View(s)
Ratings:
Rate this:
  1. Post:9

    Points:45
    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. Post:562

    Points:2810
    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