Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hiding parent methods
Message
From
09/11/2006 08:45:17
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
09/11/2006 07:11:21
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01168198
Message ID:
01168411
Views:
11
Thank you.

Jerry



>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform