Yurttas/PL/OOL/Java/F/04/06/01/A.java

 1/**
 2 *  Copyright (C) 1998
 3 *  All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
 4 *
 5 *  Permission to use, copy, modify, and distribute this
 6 *  software and its documentation for EDUCATIONAL purposes
 7 *  and without fee is hereby granted provided that this
 8 *  copyright notice appears in all copies.
 9 *
10 *  @date   : January 1, 1998.
11 *  @authorĀ : Salih Yurttas.
12*/
13
14
15public class A {
16
17  static int i0;
18  static int i1;
19
20  protected int a0;
21
22  public A() {
23    a0 = i0++;
24    ++i1;
25  }
26
27  protected void finalize()
28    throws Throwable
29  {
30    super.finalize();
31    --i1;
32  } 
33
34}