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
What is a virtual memory? : Dot net architecture
.Net Frame work arch?
how we can fire event in databound column in datagrid without using button?
Explain cache? : .NET Architecture
What is the difference between l1 and l2 cache? : Dot net architecture
Why am I getting an invalidoperationexception when I serialize an arraylist?
What is the use of web.config?
Explain How to improve the cache performance? : Dot net architecture
Name some changes done since version 3.0?
Xmlserializer is throwing a generic "there was an error reflecting myclass" error. How do I find out what the problem is?
What is a service class?
how to change the application name?
Is dim fs as filestreamobject is a managed code? : Dot net architecture
How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts
Can you explain control extenders?