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 form level validation and field level validation?
COM+ Used ________________ Isolation Level
List down the sequence of methods called during the page load.
what are configuration files?
What is asp net application object?
Explain the role of global.asax?
What is a form tag?
How should I destroy my objects in asp.net?
How can you identify that the page is post back?
How to rename a table using sql queries?
Which library is used by the testers and developers to develop automated tests and create testing tools?
What is the advantage of using Windows authentication in a Web application?
Is it possible to change the index of primary key on table?
What does the orientation property do in a menu control?
How long do session variables last?