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
Why the config file might not be writable
What's new in the .net 2.0 class library?
Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form.
Is .net easier than java?
What is cache coherency and how is it eliminated? : .NET Architecture
where should I put this information then?
How do I know when my thread pool work item has completed?
Explain difference between machine config vs. Web config? : .NET Architecture
What is a managed code? : Dot net architecture
Explain COM with example?
State the different levels of exceptional safety?
What is difference between .net and visual studio?
What is msil, and why should my developers need an appreciation of it if at all?
Differnce between managed code and unmanaged code ?
How to improve the cache performance? : .NET Architecture