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
}
} |