This reference is for Processing 3.0+. If you have a previous version, use the reference included with your software in the Help menu. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

Name

super

Examples
// This example is a code fragment;
// it will not compile on its own.

// Create the DragDrop subclass from
// the Button class. Button becomes
// the superclass of DragDrop.
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.
Relatedclass
extends
Updated on July 30, 2016 04:32:02am EDT

Creative Commons License