How can i create only one instance of class and thus doesn't
allow creating any more instances?
Answer / 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 |
What is password attribute of the textbox control of .net mobile? : Microsoft dot net mobile
2. I've a class Parent Class A and a Derived Class B. Here is a scenario. I've an instance of Class A as objA and an instance of Class B as objB. I can refer a child class variable as objB=objA, but cannot do objA=objB what is the reason?
Explain different pipelining hazards? : Dot net architecture
Explain difference between machine config vs. Web config? : .NET Architecture
What's new in the .net 2.0 class library?
Explain about validation?
How can a win service developed in .NET be installed or used in Win98?
What is an asssembly qualified name? Is it a filename? How is it different?
How can I create a application?
Why am I getting an invalidoperationexception when I serialize an arraylist?
how do create a repeater
I can't be bothered with cas. Can I turn it off?