FileDocCategorySizeDatePackage
Shape.javaAPI DocExample308Fri Nov 09 18:51:26 GMT 2001polymorphism

Shape.java

package polymorphism;
import javax.swing.*;
import java.awt.*;

public abstract class Shape extends Object{
	// An abstract class which extends Object (i.e. has drawing methods)
	public void drawShape(Graphics g, int x, int y, int width, int height) {
		// Abstract class, actually does nothing
	}
}