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?



How can i create only one instance of class and thus doesn't allow creating any more instances..

Answer / 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

More Dot Net AllOther Interview Questions

what is stage management ? (ASP.NET)

5 Answers   Ness Technologies,


Difference between type constructor and instance constructor?

0 Answers  


Can I create my own permission set?

0 Answers  


What is a service class?

0 Answers  


WHAT IS COMPUTER

7 Answers   NICE, TVS,


What are the different pipelining hazards? : Dot net architecture

0 Answers  


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

0 Answers  


Write a query Where,Groupby,having clauses?

2 Answers   iGate,


difference between data reader and dataset

0 Answers   PCS,


how do you hide maximize,minimize and close box at the form title bar?

1 Answers   Six Sigma,


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

0 Answers  


How to upload in video,mp4,in .net 4.5 ..?

0 Answers   HCL,


Categories