public class Tasks {
public static Tasks instance = new Tasks();
private static final int DELTA = 5;
private static int BASE = 7;
private int x;
public Tasks() {
x = BASE + DELTA;
}
public static void main(String[] args) {
System.out.println(Tasks.instance.x);
}
}
Login in to like
Login in to comment