Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hiding parent methods
Message
From
09/11/2006 07:11:21
 
 
To
08/11/2006 14:25:25
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01168198
Message ID:
01168388
Views:
10
>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.

No. If you would use HIDDEN keyword then the child class will can't access them.
Use PROTECTED keyword instead for the parent class methods. This way they will stay visible for child classes but invisible for COM.
/A new technology turns into completely outdated stuff before you have a time to read "Getting Started..." section.
/If there are some "system programmers" then others are unsystematic.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform