DrawableObject class
and refine that to particular drawable objects, such as Circle
or Square.
extends keyword.
public class Circle extends DrawableObject {
// ...
}
DrawableObject obj = new Circle();
import OtherClass;
before your class definition.
java.lang.Throwable,
and most are subclasses of java.lang.Exception.
try {
// stuff that may have problems
}
catch (ExceptionClass e1) {
// Handle one type of exception
}
catch (AnotherExceptionClass e2) {
// Handle another type of exception
}
finally {
// Clean up code that is always executed.
}
public int MyCoolMethod() throws AlphaBet,Crispies {
// ...
}
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
Source text last modified Tue Oct 7 17:12:27 1997.
This page generated on Wed Nov 5 12:38:43 1997 by SiteWeaver.
Contact our webmaster at rebelsky@math.grin.edu