Processing, super
用法介紹。
說明
用於引用子類的超類的關鍵字。
例子
// 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;
}
}
相關用法
- Processing subset()用法及代碼示例
- Processing scale()用法及代碼示例
- Processing splice()用法及代碼示例
- Processing saveJSONArray()用法及代碼示例
- Processing strokeJoin()用法及代碼示例
- Processing saveXML()用法及代碼示例
- Processing switch用法及代碼示例
- Processing sqrt()用法及代碼示例
- Processing serverEvent()用法及代碼示例
- Processing save()用法及代碼示例
- Processing saveStrings()用法及代碼示例
- Processing saveTable()用法及代碼示例
- Processing shorten()用法及代碼示例
- Processing saturation()用法及代碼示例
- Processing settings()用法及代碼示例
- Processing spotLight()用法及代碼示例
- Processing setLocation()用法及代碼示例
- Processing splitTokens()用法及代碼示例
- Processing setResizable()用法及代碼示例
- Processing specular()用法及代碼示例
- Processing sphere()用法及代碼示例
- Processing setup()用法及代碼示例
- Processing shape()用法及代碼示例
- Processing smooth()用法及代碼示例
- Processing sin()用法及代碼示例
注:本文由純淨天空篩選整理自processing.org大神的英文原創作品 super。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。