public class Ticket {
private static int last = 100;
private int number ;
public Ticket () {
number = last;
last=last+1;
}
public int getSerialNumber () {
return number;
}
}
public class Ticket {
private static int last = 100;
private int number ;
public Ticket () {
number = last;
last=last+1;
}
public int getSerialNumber () {
return number;
}
}