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 / pank

Make your class constructor as Private then it will restrict from being inherit as well as instantiate.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?

955


Is c sharp and c# are same?

936


What is the compiler of c#?

952


What is difference between first and firstordefault?

913


Describe the ways of cleaning up objects in c#.

909


what are windows services?

994


Give an example of a ctype.

1033


What is or operator in c#?

961


What are value types and reference types?

1140


What is the use of xmlserializer?

868


What is the difference between method and function in c#?

916


Why to use lock statement in c#?

937


What is boolean conditions in c#?

969


What is an enumerator c#?

921


Is there a way to force garbage collection?

1020