a port of the Processing Visualization Language
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.
Usage Web & Application
Related class
extends

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub