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 are validator? Name the validation controls in asp.net? How do you disable them? Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?
Name the two properties are on every validation control?
Can action method static?
What is a web api? Which protocol is used in a web api?
Which tool you have done?
Where is cookie used in asp.net?
Explain how asp.net different from asp?
What is synchronous and Asynchronous post back ?
Define xmlreader class.
What are the differences between clr & cts?
What is caching? What are different ways of caching in asp.net?
What is a multilingual website?
6. Tell us about a time when you failed to meet a deadline. What were the repercussions?
What is the caspol.exe tool used for?
What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?