Pair 类 |
命名空间: VO
Pair 类型公开以下成员。
名称 | 说明 | |
---|---|---|
Destroy | Free memory resources allocated for a VObject object and its derived objects. (继承自 VObject。) |
1CLASS Fraction INHERIT Pair 2 HIDDEN Num 3 HIDDEN Denom 4 5 METHOD Init(nVal1,nVal2) CLASS Fraction 6 SUPER:Init(nVal1,nVal2) 7 Num := nVal1 8 Denom := nVal2 9 10 METHOD Numerator() CLASS Fraction 11 RETURN SELF:Num 12 13 METHOD Denominator() CLASS Fraction 14 RETURN SELF:Denom