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