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 u give me real example of how web.config overrides the machine.config file?

1725


What is .net mobile automatic paging? : Microsoft dot net mobile

938


IS IT Possible to inherit the AJAX page from child class which(child) is inherit from page class.Because i should apply some security in child class

1965


So what exactly is the configuration file for then?

912


What re interop services?

946


Explain about clr?

986


What are the options provived by vss to the user? how it will help us while delevoping application?

2155


i wish to write mcts(microsoft certified technology specialist) exam. can anyone give the model question or format and preparation method?

2707


Explain the process of gc?

936


What is boxing and unboxing? Does it occure automaatically or you need to write code to box and unbox?

910


Explain dma? : Dot net architecture

967


Explain about httpruntime.cach.get(); method?

963


Explain the types of memory management? : Dot net architecture

896


Whats new features in Visual Studio 2012?

914


what are the fundamental and common properties of .net controls?

2057