Which code snippet illustrates the use of the "Singleton Pattern" for managing a single instance of a class?
public void increaseCounter() { counter++; }
public static InvoiceCounter getInvoiceCounter() { if(myCounter == null) { myCounter = new InvoiceCounter(); } return myCounter; }
public enum ShapeType { CIRCLE, SQUARE, RECTANGLE }
private static InvoiceCounter myCounter;