Search processing.org:

Reference for Processing (BETA) version 0135+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name | ### super
Examples |
    // This example is a code fragment,
    // it will not compile on its own.

    // Create the Button subclass from
    // the DragDrop class. DragDrop becomes
    // the superclass of Button.
    class DragDrop extends Button {
      int xoff, yoff;
      DragDrop(int x, int y) {
        // Runs the superclass' constructor
        super(x, y);
      }
      void press(int mx, int my) {
        // Runs the superclass' press() method
        super.press();
        xoff = mx;
        yoff = my;
      }
    }
Description | Keyword used to reference the superclass of a subclass.
Syntax |
    super
Parameters |
Usage | Web & Application
Related | class extends

Updated on September 20, 2006 05:01:16pm PDT