[Gambas-user] OO design problem?

Fabien Bodard gambas.fr at ...626...
Wed Aug 31 08:32:52 CEST 2016


The three way are :


Implemented in the base Class :

hChild.Function()


Implemented since a least the second inheritance level :
'hChild must be typed as Object
if hChild is SubTypeClass then hChld.Function


Totaly random :
'hChild must be typed as Object

Try hChild.Function
if Error then Error Subst("Warning: the function  \"Function\" is not
implemented in class &2",, Object.Type(hChild))




More information about the User mailing list