What are Sealed Classes in C#?

Answer Posted / kanchan kora

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 ?    50 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a streamwriter in c#?

498


Can we inherit class that contains only one private constructor?

509


What is the difference between ref & out parameters in c#?

452


What is the namespcae generally given to the webpage of the .NET Framework ?

592


Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?

500






What is anonymous types in c#?

495


What is type safe code?

464


Can abstract class have constructor?

492


What is the difference between static class and abstract class in c#?

454


What is cookies c#?

477


Will the following code compile and run?

547


Define clr in .net?

555


What is difference between ienumerable and enumerable in c#?

469


Explain the Abstract class in c#.net

547


Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?

517