Singleton Design pattern?How do you achieve it?
Answer Posted / mithun kanungo
We Can Achieve Singleton Design Pattern By restricting Other
Class To Make Object of the class By Using Constructor
instead we can Use A Static Method to get hold of the
Instance of the class , And By making our Constructor
private we can Restrict other classes to make Instance of
the Class , So that All other Classes use the same static
method to make only one instance of the class.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Explain how asp.net different from asp?
What is difference between view and partial view?
What is the difference between web.config and machine.config in ASP.NET?
What is a form tag?
How many languages are supported by .NET at present time?
Write the different features of a Thread and a Process?
Is it possible for me to change my aspx file extension to some other name?
Describe the disadvantage of cookies.
What are the different methods of session maintenance in asp.net?
What are the main advantages of using asp.net?
Is asp.net easy to learn?
What are the new web part controls in asp.net 2.0 ?
Which object is used to encapsulate the state of the client and the browser in ASP.NET?
What are the various types of validation controls provided by asp.net?
What is the asp.net mvc folder conventions? : asp.net mvc