classes, events and methods

scorpin

Newcomer
Joined
Oct 6, 2003
Messages
24
in reference to classes, what is the definition of events and methods? and what is the difrence between to the two?
 
Methods are called by you manually when you want to cause something to happen. Events are fired from within the class, and are used to handle certain actions.

For example, in a socket class, you may have a Connect method, which *you* call in order to connect, and then a Connected event, which is called by the class when the connection is complete.

MSDN contains tons of stuff like this. Open it and start readin'. :)
 
Back
Top