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 password attribute of the textbox control of .net mobile? : Microsoft dot net mobile

0 Answers  


2. I've a class Parent Class A and a Derived Class B. Here is a scenario. I've an instance of Class A as objA and an instance of Class B as objB. I can refer a child class variable as objB=objA, but cannot do objA=objB what is the reason?

2 Answers   247Customer,


Explain different pipelining hazards? : Dot net architecture

0 Answers  


Explain difference between machine config vs. Web config? : .NET Architecture

0 Answers  


What's new in the .net 2.0 class library?

0 Answers  


Explain about validation?

0 Answers  


How can a win service developed in .NET be installed or used in Win98?

1 Answers  


What is an asssembly qualified name? Is it a filename? How is it different?

0 Answers  


How can I create a application?

0 Answers  


Why am I getting an invalidoperationexception when I serialize an arraylist?

0 Answers  


how do create a repeater

3 Answers  


I can't be bothered with cas. Can I turn it off?

0 Answers  


Categories