How can i create only one instance of class and thus doesn't
allow creating any more instances?
Answer Posted / prayag thakkar
If a system only needs one instance of a class, and that
instance needs to be accessible in many different parts of
a system, you control both instantiation and access by
making that class a singleton.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between l1 and l2 cache? : Dot net architecture
How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts
What are library functions?
What is msil, and why should my developers need an appreciation of it if at all?
How to improve the cache performance? : .NET Architecture
can u give me real example of how web.config overrides the machine.config file?
What is ILDASM ?
Explain the components required to develop mobile applications with .net mobile? : Microsoft dot net mobile
Explain the five stages in a dlx pipeline? : Dot net architecture
what is sessions and cookies take one example simple way to understand
How do I prevent concurrent access to my data?
Explain .net mobile selectionlist control? : Microsoft dot net mobile
What is the purpose of cache? : Dot net architecture
Xmlserializer is throwing a generic "there was an error reflecting myclass" error. How do I find out what the problem is?
How does .net mobile work? : Microsoft dot net mobile