Enjoy java,enjoy life
Originally posted by Valentin Crettaz:
maybe you should add an import java.io.*; statement on the first line since only java.lang.*; is automatically imported by the compiler.
[ March 05, 2002: Message edited by: Valentin Crettaz ]
Originally posted by Valentin Crettaz:
Jenny,
constructors are not inherited.
B's constructor will invoke A's constructor and since the latter may throw an Exception, the exception has to be caught by B's constructor somewhere or declared to be thrown further.
Originally posted by Valentin Crettaz:
Jenny,
constructors are not inherited.
B's constructor will invoke A's constructor and since the latter may throw an Exception, the exception has to be caught by B's constructor somewhere or declared to be thrown further.
Originally posted by Valentin Crettaz:
This all makes sense if you realize the following:
Why would the object itself care about the fact that it has not been instantiated? The caller method cares, the object does not.
Consider Paul's rocket mass heater. |