What are Sealed Classes in C#?

Answer Posted / mukesh kumar

A class which restricts inheritance for security region is
called Sealed class.
Sealed class is the last class in hierarchy that why a
sealed class can be a derived class but can never 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 ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is decimal in c#?

508


What is the use of partial methods?

580


Explain the difference between proc. Sent by val and by sub?

479


What is or operator in c#?

544


What are the steps to create a webservice and consume it?

475






What is interface inheritance?

537


What is the difference between int16 and int32 in c#?

478


What does do in c#?

542


Define acid rule of thumb for transactions in c#.

486


What is token in c#?

533


What is the implicit name of the parameter that gets passed into the class set method?

494


Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records

592


What is hashset c#?

498


Can we assign null value to integer?

459


How can you reference current thread of the method ?

527