A subclass needs to know when particular events occur withing its superclass, but there are more than one ways for the superclass to break the news. Here are 2:
- dispatch an event
- call an abstract method which the subclass could eventually override
I was wondering if best practices would recommend one of the approaches over the other.
P.S. I was working with ActionScript when I thought of this question.