General information
Category:
COM/DCOM and OLE Automation
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only