Does anyone have any particular reasons to do this either way?
I'd lean towards the 'dummy' method approach for a few reasons:
I'd also not use the leading underscore convention for this method. Since it's intended to be overridden in sub-classes I'd look upon it as part of the public API rather than something private.
Or some other way?
Depending on the application it might make sense to delegate the _Private_X behaviour to another subroutine or object. For example if you wanted different _Private_X behaviour on a per-object rather than a per-class basis, or if the behaviour was conceptually separate and might be reused in different sub-classes.
In reply to Re: overridden method - best way
by adrianh
in thread overridden method - best way
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |