Article ID: 128076
Article Last Modified on 2/12/2000
oNewObject= CREATEOBJECT ("House")
oNewObject.RingThebell()
* Class definition
DEFINE CLASS building AS CUSTOM
Value="Building"
PROCEDURE RingtheBell
WAIT WINDOW "This is a " + this.value
ENDPROC
ENDDEFINE
DEFINE CLASS House AS Building
Value ="House"
PROCEDURE RingtheBell
=EVALUATE(this.parent.class+'::RingtheBell()')
&& Generically calls the method in the parent class
?CHR(7)
ENDPROC
ENDDEFINE
Additional query words: VFoxWin
Keywords: kbcode KB128076