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


Please Help Members By Posting Answers For Below Questions

To validate a range of values for a property whenever the property values changes,which type of property procedure you use?

1523


What is ActiveX Document?

1783


How do I call a DLL?

1134


How can you Navigate from the DHTML application to another DHTML application? .

1457


How do I prevent multiple instances of my program?

1059






How would you Create a Query Builder and Explain its uses ?

1738


Is it possible to set a shortcut key for label?

1487


Which type of object requires this object?

1611


Can you create a tabletype of recordset in Jet - connected ODBC dbengine?

1662


What is meant by Establish Connection in RDO?

1771


Is there a way to break long lines in VB code?

1027


How would you attach an ActiveX control in Your Application?

1689


what are the Types of LockEdits in RDO?

1651


___,_____ and ____ container objects.

1142


what are the Differences between Recordset and Resultsets?

2113