Author: AMS Computing, computing@dial.pipex.com
Posted: 1999-09-14 at 09:22:58
Okay so I am thick, but does the Polymorphism donkey upset Inheritance cart?
Using an example from a book to explain Poly...
*****
DEFINE CLASS xPoly AS custom
PROC show
WAIT WINDOW 'This is the root class'
ENDPROC
ENDDEFINE
DEFINE CLASS xPolyChild AS xPoly
PROC show
? 'This is the child of xPoly'
ENDPROC
ENDDEFINE
SET PROC TO ...
oTest = CREATEOBJECT('xPolyChild')
oTest.Show()
****
Only shows the child not the parent, unless I included DODEFAULT() in
xPolyChild.Show
Is this correct, it does make sense?
regards
Stuart Hurley
ams_ltd@dial.pipex.com