 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| |
Within
a hierarchy, if you need finalize() in a
|
|
|
|
derived
class and base class
|
|
|
|
|
It
is important to remember to call the base class
|
|
|
|
version
of finalize()
|
|
|
|
|
Otherwise,
the base class finalization will not happen!
|
|
|
//In
the derived class
|
|
|
|
protected
void finalize() {
|
|
|
|
super.finalize();
|
|
|
|
}
|
|