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 the purpose of Treeview control?
Explain different pipelining hazards? : Dot net architecture
What happens when you try to update data in a dataset in .net while the record is already deleted in sql server as backend?
Why the config file might not be writable
Explain how does .net mobile work? : Microsoft dot net mobile
What are the main Tools to develop .Net Application?
how to make and display a form without title bar?
Explain some of the disadvantages due to microsoft.net?
Explain pipelining? : .NET Architecture
What is Video Streaming in .net??
How does .net remoting work?
What is an interrupt? : .NET Architecture
What is IL code, CLR, CTS, GAC & GC?
Can you explain server controls in atlas?
What are bindings?