Which design pattern is implemented in the below code snippet?

using System;

public class MyClass
{
private static MyClass instance;

private MyClass() {}

public static MyClass Instance
{
get
{
if (instance == null)
{
instance = new MyClass();
}
return instance;
}
}
}

 Posted by Peermohamedmydeen on 9/14/2010 | Category: .NET Framework Interview questions | Views: 5947 | Points: 40
Select from following answers:
  1. Abstract Factory
  2. Builder
  3. Singleton
  4. Factory Method
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response