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

How to make a class non-inheritable other than sealed?

Answer Posted / nitin

1)Make the class Sealed
2)Make the class staic
3)Have private constructor (Like in single ton class)

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between association, aggregation and inheritance relationships?

897


Is dictionary reference type c#?

814


Can we make a class private in c#?

928


State the top.NET class that everything is derived from?

927


How is a strongly-named assembly different from one that isn’t strongly-named?

1042


What is data bind in c#?

892


What is difference between mutable and immutable in c#?

893


What is list array in c#?

857


Can we have 2 main methods in c#?

891


What do you mean by expression tree?

835


Why we use dll in c#?

947


Why are strings immutable in c#?

880


What is an example of a delegate?

945


Name some properties of thread class.

985


can you allow a class to be inherited, but prevent the method from being over-ridden?

952