Beispiel #1
0
 public Person(String name, String pesel) {
   context = Context.getInstance();
   context.raisenumberOfPeople();
   this.pesel = pesel;
   this.name = name;
   this.cars = new ArrayList<Car>();
 }
Beispiel #2
0
 @Override
 protected void finalize() throws Throwable {
   context.reducePeople();
   super.finalize();
 }