Methods are associated with objects, and define the actions they carryout for their object. For Example: The methods of your radio are on, off, volume control etc, Which give you control on your radio.Each Method …
Read More »Methods and events
Syntax for Calling Method
Objectname-Method Here objectname specifies the name of an object, and Method specifies the name of a method. Example: Form1.Print “Hello World” Here Form1 is form name , and method Print is called to print the …
Read More »Events
A major part of interaction between people in every day life is in the form of events and response. For Example When some one knocks at the door, then you open the door.Knocking at door …
Read More »Example Of An Event In An Application
1.Clicking the mouse. 2.Pressing a key on the keyboard. When you click on a button it is recognized as an event by the button. A calculator (Provided in your Windows) shown in figure is the …
Read More »