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
How can we provide the WebParts control functionality to a server control?
What is AutoEventWireup attribute for ?
What is authorization in asp.net?
Is data edited in the Repeater control?
What are the event handlers that we can have in global.asax file?
What are the advantages and disadvantages of session?
Explain server-side scripting and client-side scripting.
Explain Features in ASP.NET
What are different types of api?
What is the use of execute non query in asp.net?
what are configuration files?
How many languages are supported by .NET at present time?
What are the types of session in asp.net?
Does asp.net still recognize the global.asa file?
Diff between web user control and web custom control?