Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are Sealed Classes in C#?

Answer Posted / rishu

Sealed classes are used to restrict the inheritance feature of object oriented programming. Once a class is defined as sealed class, this class cannot be inherited.
In C#, the sealed modifier is used to define a class as sealed. In Visual Basic .NET, NotInheritable keyword serves the purpose of sealed. If a class is derived from a sealed class, compiler throws an error.

If you have ever noticed, structs are sealed. You cannot derive a class from a struct.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the Disadvantages of vb

1045


Explain the difference between abstract class and interface.

1162


What is the difference between delegates and events in c#?

994


Can a dictionary have duplicate keys c#?

923


How can we sort an array in c#?

919


What is the default value of object in c#?

927


What is wcf c#?

951


What is super class in c#?

940


Is a valid int value?

924


What is gac? What are the steps to create an assembly and add it to the gac?

924


How do I create a dbml file?

977


What are properties in C#?

983


Explain the difference between private and shared assembly?

895


What is null propagation c#?

1017


What is the difference between an implicit conversion and an explicit conversion?

984