1. Text1.color ------ is a property
2. Text1.text ------- is Method
3. button 1. Click -- is an event
What is the difference between a property a method and an event? Give an example of each.
*Property are a type of method that shows state of an Object
like Caption, backcolour etc.
*Methods/Functions are for changing Or doing something on
the Object Like Move,Remove, Add etc.
*Event are Objects which means that something happend for
which the object must respond to. And for this very reason
we write method like
button1_Click( sender Object, event Object)
The event Object(Delegate) is related with the method of
that responder Object(Button)
No comments:
Post a Comment