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 can i create only one instance of class and thus doesn't
allow creating any more instances?

Answer Posted / prayag thakkar

If a system only needs one instance of a class, and that
instance needs to be accessible in many different parts of
a system, you control both instantiation and access by
making that class a singleton.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between l1 and l2 cache? : Dot net architecture

1029


How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts

1110


What are library functions?

993


What is msil, and why should my developers need an appreciation of it if at all?

1187


How to improve the cache performance? : .NET Architecture

1003


can u give me real example of how web.config overrides the machine.config file?

1842


What is ILDASM ?

1168


Explain the components required to develop mobile applications with .net mobile? : Microsoft dot net mobile

959


Explain the five stages in a dlx pipeline? : Dot net architecture

975


what is sessions and cookies take one example simple way to understand

2388


How do I prevent concurrent access to my data?

1081


Explain .net mobile selectionlist control? : Microsoft dot net mobile

1027


What is the purpose of cache? : Dot net architecture

1044


Xmlserializer is throwing a generic "there was an error reflecting myclass" error. How do I find out what the problem is?

1017


How does .net mobile work? : Microsoft dot net mobile

997