Which design pattern is implemented in the following code snippet?
public class InvoiceCounter {
private int counter;
public void increaseCounter() {
counter++;
}
public int getCounter() {
return counter;
}
}
Which design pattern is implemented in the following code snippet?
public class InvoiceCounter {
private int counter;
public void increaseCounter() {
counter++;
}
public int getCounter() {
return counter;
}
}