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
what is the difference between response.write() and response.output.write()?
What is hidden field in asp.net?
Difference between application events and session events
What is the difference between ASP Session State and ASP.Net Session State?
What is the use of execute non query in asp.net?
What are resource file and how do we generate resource file?
Explain the different types of directives in .net?
Explain asp.net mvc request life cycle? : asp.net mvc
Is asp.net core faster?
Do gac'ed assemblies have fulltrust?
If you want to write your own dot net language, what steps you will you take care?
What is web api and why to use it?
Where can I get the details on migration of existing projects using various technologies to asp.net?
What is the size of Get method and how much data it can store?
How you can manage the state of application at the server side in ASP.NET?