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


Please Help Members By Posting Answers For Below Questions

Is it possible to change menu runtime using API? If yes Specify the function names?

1455


Explain about ADO control?

581


What is the use of Hyperlink control for DHTML applications?

1414


How should dates be implemented so they work with other language and country formats?

950


What is executenonquery in vb net?

501






Why API functions are Required?

1787


Whether HTML supports multimedia: and document links?

1419


how to make unlimited id(1rimjim,2rimjim,3rimjim....etc) login grp chat pogram for jabber?

1970


What is OLEDB?

1541


what is the Difference between Recordset and Querydef?

1854


Draw Sequence Modal of DAO? Explain.

1697


what are the Types of cursors in RDO?

1862


How many objects resides in ADO ?

1499


What is the default workspace?

1636


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?

1517