I asked almost the same question in Inherit or copy-n-paste? but didn't get quite as many responses. Maybe it was my choice of node title. :)
I like your dummy method option. I chose to solve my particular problem with a callback, but I didn't like that method, because I had still had to copy the arg handling portion from the base class in order to insert the callback into the passed arguments. It works, but still feels like a kludge. I shouldn't have to know about the internals of the base method in order to override/extend it.
I'll have to try the dummy method technique, and see if it simplifies the interface/implementation a bit.
dcvr69
In reply to Re: overridden method - best way
by dcvr69
in thread overridden method - best way
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |