Paul Smith
Posts: 1
Nickname: pls198
Registered: May, 2003
|
|
Re: exercise 11 Bruce Eckel chapter 4
|
Posted: Mar 11, 2004 5:29 PM
|
|
It is complaining because you are trying to change the visibility of the method. In the super (java.lang.Object) it is declared as protected so you have to declare with more visibility, which means protected or public.
So if you do,
protected void finalize() throws Throwable
{
super.finalize();
}
it should work.
BTW Eclipse can do this for you, take a look at Source -> Override/Implement Methods
Paul
|
|