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 main difference between Asp.net and Vb.net?
What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?
What is the differences between a primary key and a unique key in sql server?
Which platform does Microsoft .NET use for exchanging data between applications?
Any disadvantages in Dataset and in reflection ?
What is difference between session and cookies?
how to implement some securty aspect in our application i.e 1.cookie poisioning. 2.data encryption. 3.forcefull browsing 4.sql/code injection 5.securing web app by using web services ........my question is how to implement these thing in our application is this done by hard coding or by help of some tool
What is .net remoting?
What’s difference between “optimistic” and “pessimistic” locking?
How can you enable impersonation in the web.config file?
Differentiate between file-based dependency and key-based dependency.
How can we provide the WebParts control functionality to a server control?
What is a web farm?
Explain the overview of asp.net?
Explain the difference between sql invalidation and sql notification.