Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can be read method code at runtime ?
Message
From
19/11/1999 13:15:11
 
 
To
19/11/1999 12:54:24
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00292948
Message ID:
00293163
Views:
25
Yes, there is a great deal of difference between a method that is intended to be filled in at the subclass level and commonly *overriding* parent method code, which is, I believe, the distinction in what DF is saying.

Indeed if I'm using DODEFAULT (or think I will be) I've started creating the primary method as hidden/private and then putting in a pre/post hook call that he subclass then fills in.

Then the subclass only has access to the method that it's safe to write in.

This is helped me a lot in starting to manage these darned hierarchies.

>This is not always true David. My framework relies heavily on hooked methods that are empty in the class definition, and over half of the code that I write at the instance level is in methods that are empty in the class definition.
Previous
Reply
Map
View

Click here to load this message in the networking platform