1. How to restrict a class from allowing to create only one
object. I.e., one should be allowed to create only one
object of the class type.



1. How to restrict a class from allowing to create only one object. I.e., one should be allowed to ..

Answer / ravi

Please refer the concept of singleton in design pattren.

Is This Answer Correct ?    15 Yes 2 No

Post New Answer

More Dot Net AllOther Interview Questions

What is a sealed Class? What is the differnce between sealed class and private class?

2 Answers   iGate,


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

0 Answers  


What is a Windows Service and how does its lifecycle differ from a "standard" EXE?

2 Answers   Siebel Systems,


Define cache? : Dot net architecture

0 Answers  


Hi, this is satish, i have more than 2 years of exp. on Microsoft .Net Technologies like C#, ASP.Net, VB.Net. But i am willing to change my platform into Testing tool. give me best suggestion for me.

2 Answers  


What is the difference between an event and a delegate?

0 Answers  


How can I write my own .NET host?

0 Answers   HCL,


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

0 Answers   Tech Mahindra,


Explain different pipelining hazards and how are they eliminated? : Dot net architecture

0 Answers  


what is the difference between Exportdll and Importdll ?

1 Answers  


how windows applications different from the console applications?

1 Answers   Six Sigma,


What is textbox control of .net mobile? : Microsoft dot net mobile

0 Answers  


Categories