Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

singleton implementation

public sealed class Singleton {

  private static readonly Singleton INSTANCE = new Singleton();

  private Singleton() {}

  public static Singleton Instance { 
    get {
      return INSTANCE;
    }
  }
}
Source by ar.wikipedia.org #
 
PREVIOUS NEXT
Tagged: #singleton #implementation
ADD COMMENT
Topic
Name
1+4 =