February 3, 2010

Events versus Methods

I found it interesting how events and methods compare.
A class can be viewed from the perspective of the provider or the consumer.

Provider (designer of the class)
  • Implements methods
  • Invokes events
Consumer (user of the class)
  • Implements events
  • Invokes methods

No comments:

Post a Comment