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 do sessions work?
Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?
What are the features of asp net?
Which is better viewstate or session?
Describe the disadvantage of cookies.
Where is asp.net session stored?
Explain the different parts that constitute ASP.NET application?
How Can assign alias name for ASP.NET Web API Action?
code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications
Why we are using mvc instead of asp.net? : Asp.Net MVC
What are the events that happen when a client requests an asp.net page from iis server?
Define repository pattern in mvc.net? : asp.net mvc
What are type/key pairs in client script registration?
What is difference between asp.net and asp?
Define static function?