What are Sealed Classes in C#?

Answer Posted / chauhan rakesh botad

A class which restricts inheritance for security region is
called Sealed class.
Sealed class is the last class in hierarchy.
Sealed class can be a derived class but can't be a base class.
To access the members of sealed class we should create the
instance object.

Advantages of sealed class is it restrict the third party
vendor for developing new software by inheriting from our logic.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is dll a library?

492


Is c# still popular?

490


What is getenumerator?

460


What is asp net in c#?

526


What are namespaces, and how they are used?

571






Give some examples for built in datatypes in c#?

552


What is difference between variable and property in c#?

432


Explain the various types of classes used in c#?

504


What is the advantage of extension method in c#?

466


What is managed or unmanaged code?

587


What is constructor overloading in c#?

499


If I want to override a method one of class A and in class b then how do you declare?

746


How do you declare a variable in c#?

518


Why do we use anonymous method in c#?

503


How to assign Null value to Var?

547