Sunday 24 March 2013

What are the advantages of the model over the event-inheritance model?


What are the advantages of the model over the event-inheritance model?  
The event-delegation model has two advantages over the event-inheritance model. They are: a)It enables event handling by objects other than the ones that generate the events. This allows a clean separation between a component’s design and its use. b)It performs much better in applications where many events are generated. This performance improvement is due to the fact that the event-delegation model does not have to be repeatedly process unhandled events as is the case of the event-inheritance.

No comments: