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...

Can you prevent your class from being inherited and becoming
a base class for some other classes?

Answer Posted / neerajtyagi

You can prevent your class being derived using sealed
keyword.

But you can't use that class as base class once you make
that sealed.

Sealed and Derived both are opposite.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between var and dynamic types in c# 4.0?

1102


Is namespace necessary in c#?

970


Value Type and Reference Type Data type in C#?

1016


What is access specifier in c#?

1117


What are the Types of values mode can hold session state in web.config

1051


What is the use of parse in c#?

957


Can we inherit singleton class in c#?

933


Is enum a value type c#?

1105


Can we overload the main method in c#?

1003


What is difference between dictionary and hashtable?

1077


What's the difference between System.String and System..StringBuilder in C#?

1070


what is partial assembly reference

992


What does immutable mean in c#?

1019


List the difference between the virtual method and the abstract method?

939


What is throw in c#?

940