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

How can u manage state ?

2 Answers   Ness Technologies,


What are bindings?

0 Answers  


what is just in time compilation?

1 Answers   Six Sigma,


There are so many languages are already existing for developing application.Then what is the need of .net.

1 Answers  


how to change the title of my window?

0 Answers   Six Sigma,






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

1 Answers  


Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure on hardware that converts the ascii value to binary? : .NET Architecture

0 Answers  


when garbage collector come into picture. ?

2 Answers  


9. Oop-Class A has m1 metthode Class B has m1 metthode and C is the calss that inharits A class, A class inharits B class. If Object dim c as new A() c.m1(), Tell me which mettode of class will call

2 Answers   PCS,


Explain difference between machine config vs. Web config : Dot net architecture

0 Answers  


Difference between type constructor and instance constructor?

0 Answers  


Explain about metadata?

0 Answers  


Categories