Home > DeveloperSection > Interviews > what is the sealed class in c#?

Posted on    November-26-2010 12:00 AM

 C# C# 
 2 Answer(s)
  1611  View(s)
Rate this:

Manasavi Rajpoot
Manasavi Rajpoot

Total Post:19

Posted on    November-26-2010 1:00 AM

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.

Amit Singh

Total Post:565

Posted on    December-09-2010 1:00 AM

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. 

Don't want to miss updates? Please click the below button!

Follow MindStick