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

Are there any third party logging components available?

938


Explain the types of memory management? : Dot net architecture

934


Explain about clr?

1039


What is gui programming? : .NET Architecture

914


Explain a .net mobile example with details? : Microsoft dot net mobile

865


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

950


What is the difference between .net mobile pages and ordinary .net web page? : Microsoft dot net mobile

937


What is private constructor? And it's use?

1114


Tell me .net mobile emulators? : Microsoft dot net mobile

941


What is the importance of updatepanel control?

1047


What is difference between Desktop, Client Server & Web based applications?

1038


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

906


What is cache coherency and how is it eliminated? : Dot net architecture

940


Can I create my own permission set?

1027


What is an interrupt? : .NET Architecture

880