C# (Sharp) Programming Language Question:

Download Job Interview Questions and Answers PDF

Which .Gang of Four. design pattern is shown below?

C# (Sharp) Programming Language Interview Question
C# (Sharp) Programming Language Interview Question

Answers:

Answer #1
<pre> public class A {
private A instance;
private A() {
}
public
static A Instance {
get
{
if ( A == null )
A = new A();
return instance;
}
}
}
</pre>
1. Factory
2. Abstract Factory
3. Singleton
4. Builder

Answer #2
3

Download C# (Sharp) Programming Language Interview Questions And Answers PDF

Previous QuestionNext Question
How does assembly versioning in .NET prevent DLL Hell? In the NUnit test framework, which attribute must adorn a test class in order for it to be picked up by the NUnit GUI?