SUPER
SUPER
返回当前对象的引用,该对象将使用由继承类实现的符号。
Examples
' MyListBox class
INHERITS ListBox
PRIVATE $cPos AS NEW Collection
PRIVATE $aKey AS NEW String[]
...
'重新实现Add方法
PUBLIC SUB Add(Text AS String, Key AS String, OPTIONAL Pos AS Integer = -1)
' 添加条目到列表框
SUPER.Add(Text, Key, Pos)
' 添加键到键数组
IF Pos < 0 THEN
$cPos.Clear
$cPos[Key] = $aKey.Count
$aKey.Add(Key)
ELSE
$aKey.Add(Key, Pos)
ENDIF
END
...
参见