Q6. How are events, messages, methods and properties interrelated?
Ans. Events, messages, methods and properties do different things, yet they are interrelate.
Properties can be thought of as an object’s attributes, methods as its actions, events as its responses.
Events can occur through user actions such as mouse click or a key press, or even as a result of another actions.
Each time an event occurs, it causes a message to be sent to the operating system.Then the system processes the message and broadcasts it to the other windows to invoke the appropriate method based on its own instructions for dealing with that particular message.