Reference×
Reference
- [] (array access)
- = (assign)
- catch
- class
- , (comma)
- // (comment)
- {} (curly braces)
- /** */ (doc comment)
- . (dot)
- draw()
- exit()
- extends
- false
- final
- implements
- import
- loop()
- /* */ (multiline comment)
- new
- noLoop()
- null
- () (parentheses)
- popStyle()
- pop()
- private
- public
- pushStyle()
- push()
- redraw()
- return
- ; (semicolon)
- setLocation()
- setResizable()
- setTitle()
- setup()
- static
- super
- this
- thread()
- true
- try
- void
Name
super
Description
Keyword used to reference the superclass of a subclass.
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; } }

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.