Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

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.
Klass DragDrop erwitere Button bitte
  Ganzizahl xoff, yoff;
  DragDrop(Ganzizahl x, Ganzizahl y) bitte
    // Runs the superclass' constructor
    super(x, y);
  danke
  Programmteil press(Ganzizahl mx, Ganzizahl my) bitte
    // Runs the superclass' press() method
    super.press();  
    xoff = mx;
    yoff = my;  
  danke
danke
Description Keyword used to reference the superclass of a subclass.
Syntax
super
Parameters
Usage Web & Application
Related Klass
erwitere
Stefan Baltensperger 2009

Creative Commons License