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

Can you explain update progress control?

882


Explain the purpose of cache? How is it used? : .NET Architecture

941


Describe the advantages of writing a managed code application instead of unmanaged one. What is involved in certain piece of code being managed?

976


What is the application frame host?

915


difference between Response.write,server.transfer and also which one is used when ?

1869


What are bindings?

942


What are library functions?

906


What is a service class?

964


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

838


I want to create a project like google maps how can we do that with atlas?

880


What other than biginteger has been introduced in system.numerics namespace?

910


Explain How to improve the cache performance? : Dot net architecture

886


What is the purpose of cache? : Dot net architecture

947


What is a managed code? : Dot net architecture

924


Explain about developer benefit from memory management?

909