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

how to delete the record using data reader

0 Answers   PCS,


Difference between type constructor and instance constructor?

0 Answers  


Are there any third party logging components available?

0 Answers  


what is tracing? Where it used?

0 Answers  


Define cache coherency? : Dot net architecture

0 Answers  






Can you explain the difference between an ADO.NET Dataset and ADO Recordset?

2 Answers  


what are the things we generally declare in session_start , application_start ?

2 Answers  


how can u manage sessions ?

3 Answers   Ness Technologies,


What is .net viewstate?

0 Answers  


Explain dma? : .NET Architecture

0 Answers  


What is static Constructor?

4 Answers   iGate,


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

0 Answers  


Categories