I have created a sub class of the parent class object and have turned mySubClass into a COM object. But I only want to expose the new methods in my class, and hide all the methods in the parent class. Can this be done?
Would I have to use the HIDDEN key word in the DEFINE CLASS statement of the parent? Basically mySubClass has new methods that access the parents methods but I don't want the user to see the parent's methods, just mySubClass methods.
DEFINE CLASS myparent AS CUSTOM
Someprop1 = ""
Someprop2 = ""
PROCEDURE someproc1
PROCEDURE someproc2
ENDDEFINE
DEFINE CLASS mysubclass AS myparent OLEPUBLIC
myProperty1 = ""
myProperty2 = ""
PROCEDURE MyNewMethod1
THIS.someproc1()
ENDPROC
PROCEDURE MyNewMethod2
THIS.someproc2()
ENDPROC
ENDDEFINE
Thanks,
Jerry