What is the difference between a property a method and an
event? Give an example of each.
Answer Posted / kunal yagnik
Methods and properties basically both are functions defining
different states if we relate them to real world.Both are
defined in a class and the procedure to execute them is a
bit different but this is only done to make the code more
transparent and visible.To understand this look the example
below :
He can walk,talk,run,write are methods while He is
sweet,soft spoken,fair are properties.
We will get the closer look if we try to implement these on
working code.
Is This Answer Correct ? | 30 Yes | 21 No |
Post New Answer View All Answers
Is it possible to change menu runtime using API? If yes Specify the function names?
Explain about ADO control?
What is the use of Hyperlink control for DHTML applications?
How should dates be implemented so they work with other language and country formats?
What is executenonquery in vb net?
Why API functions are Required?
Whether HTML supports multimedia: and document links?
how to make unlimited id(1rimjim,2rimjim,3rimjim....etc) login grp chat pogram for jabber?
What is OLEDB?
what is the Difference between Recordset and Querydef?
Draw Sequence Modal of DAO? Explain.
what are the Types of cursors in RDO?
How many objects resides in ADO ?
What is the default workspace?
VB ActiveX: Create a "drivelist"(D1) box, a "folderlistbox"(FLD1) that changes whenever D1 is changed , and a "FilelistBox"(FIL1) that is populated with the file lists under the selected directory in (D1).The file selected is stored in a variable "filename" along with the path. Question: How to use this activeX control in VC++ to get the selected filename?