General information
Category:
Object Oriented Programming
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
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