What is the difference between a property a method and an
event? Give an example of each.
Answer Posted / ashwini khopkar
Property:-
1) It tells something abt an object, such as its
name,color,size,location,or how it'll behave.
2) We can thing property as adjectives that describe
objects.
3) For e.g., Caption property of a form are called as
Form1.caption.
Method:-
1) Actions associated wid objects are called as method.
2) Methods are verb.
3) Some typical methods are move, print, resize & clear.
Event:-
1) Code related 2 some objects.
2) It is also verb.
3) It is an action that may b taken by d usr, such as
click, drag, key press, or scroll.
| Is This Answer Correct ? | 30 Yes | 10 No |
Post New Answer View All Answers
How would you find out the value property in Slider Bar Control?
Why does everybody say I should save in TEXT not BINARY?
How can you Add API functions to your Application?
When should we use recursive programming?
which property of menu cannot be set at run time.
What is the difference between c++ and visual basic?
which property used to add a menus at runtime?
Is a foo VBX/DLL available as shareware/freeware?
What is the difference between Msgbox Statement and MsgboxQ function?
what are the Types of DBCombo boxes?
How do I implement Undo?
What are the important components of OLEDB?
How would you navigate between one document to another document in Internet Explorer ?
How would you create properties in ActiveX Control?
_____ collection in recordset used to assign a value from textbox to table columns without making abinding in datacontrol.