interviews.dotnetthread.com

↑ Grab this Headline Animator

Wednesday, May 14, 2008

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

public class A {

private A instance;

private A() {

}

public
static A Instance {

get

{

if ( A == null )

A = new A();

return instance;

}

}

}

Ans: Singleton

Submit this story to DotNetKicks

No comments:

Post a Comment

Post your comments/questions/feedback for this Article.

 

Latest Articles