public class Account {
private static long nextId = 100;
private long id;
public Account() {
System.out.println(“Account was called!”);
this.id = nextId;
nextId = nextId + 1;
}
public long getId() {
return this.id;
}
}