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 throw in c#?

526


What are the benefits of using generics in c#?

489


write program in c# using this instructions name avinash varma ,work experiance<2,nochildren his work experiance is higher than 5 years,more than one children one children name is diwakar,number of years of work eperiance at current company is the ratio of children and work experiance is 0.21 to 0.5

1880


What is tryparse c#?

501


What is difference between an Structure and Class?

575






What is #region in c#?

510


What are cookies in c#?

554


Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?

561


Is int an object in c#?

523


What exception can an overridden method throw in comparison with the method it is overriding?

469


What is dataset and dataadapter in c#?

509


What is meant by enumerable in c#?

500


What do you mean by synchronous and asynchronous operations?

488


While debugging a C# application can you change the value of a variable?

550


What is a service layer c#?

477