Answers

Question and Answer:

  Home  C# (Sharp) Programming Language

⟩ 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;
  }
  }
 }
1. Factory

2. Abstract Factory

3. Singleton

4. Builder

 157 views

More Questions for you: