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
Are there any third party logging components available?
Explain the types of memory management? : Dot net architecture
Explain about clr?
What is gui programming? : .NET Architecture
Explain a .net mobile example with details? : Microsoft dot net mobile
Xmlserializer is throwing a generic "there was an error reflecting myclass" error. How do I find out what the problem is?
What is the difference between .net mobile pages and ordinary .net web page? : Microsoft dot net mobile
What is private constructor? And it's use?
Tell me .net mobile emulators? : Microsoft dot net mobile
What is the importance of updatepanel control?
What is difference between Desktop, Client Server & Web based applications?
Explain the components required to develop mobile applications with .net mobile? : Microsoft dot net mobile
What is cache coherency and how is it eliminated? : Dot net architecture
Can I create my own permission set?
What is an interrupt? : .NET Architecture