What is singleton design pattern
Answer / lokesh
Singleton design pattern is a a creational pattern to
dictate how and when objects get created and it's main
purpose is to ensure that a class has only one instance
#define NULL 0
Singleton& operator =(Singleton&);
static Singleton* pSingleton;
if(NULL == pSingleton)
pSingleton = new Singleton();
void setValue(int val)
nValue = val;
Singleton* Singleton::pSingleton = NULL;
int main(int argc, char* argv)
Singleton *abc = NULL;
Singleton *xyz = NULL;
Singleton *sss = Singleton::Instance();
|Is This Answer Correct ?||16 Yes||5 No|
What is difference between GoF and J2EE patterns?
In which application lifecycle phases is an application architecture produced?
Identify three types of systems or system upgrades that may be ideal candidates for a Waterfall Development Model strategy.
Contact a system development program in your organization. Research how they analyzed their SYSTEM OF INTEREST (SOI), its OPERATING ENVIRONMENT, and their respective system elements. How was this analysis reﬂected in the SOI architecture?
How do you ensure quality of code ?
Dd you useuse OOA/OOD methodologies?did you use design patterns?
What is the publish/subscribe model?
What is Architecture and what is design? Are they related?
What is impedance mismatch and How to solve the problem?
what is design patterns? which design patterns mostly used in .net? How it is used with examples?
Why is it important to use systems analysis and design methodologies when building a system? Why not just build the system in whatever way appears to be “quick and easy”? What value is provided by using an “engineering” approach?
Explain Internal Style Sheets?