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 are namespaces, and how they are used?

1058


What are generic types?

986


Explain the difference between private and shared assembly?

937


How can you prevent escaping on backslashes in C# with string definitions?

1286


How do you declare a method in c#?

998


What is response redirect in c#?

941


Which namespace is required to implement trace ?

1030


Is post back in c#?

1012


What are generations and how are they used by the garbage collector?

967


Can abstract classes be final?

997


Is string mutable in c#?

919


Why is .net so popular?

997


What is the difference between static and private constructor?

1031


Can we change static variable value in c#?

969


Explain About Virtual functions and their use.

1072