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?
How would you create properties by using class Builder Wizard?
What is meant by Establish Connection in RDO?
It is possible to access Text (x.txt) files? Explain.
advantage and disadvantage in visual-basic and ms-access please tell me or send my mail-id
How would you create properties in ActiveX Control?
Explain the differences between ActiveX Dll and ActiveX Exe?
How do I speed up control property access?
What is the use of parameters collection?
What is dao in vba?
How do I mimic a toggle button?
How would you add elements in TreevieW Control.
How do I tell when an application executed using the SHELL command is finished?
How do I call a DLL?
How many File System Controls are there ? Explain.