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

What is controls in vb?

763


What are the rules which should be followed while naming a variable in VB?

762


___ Property is used to count no. of items in a combobox.

1152


Binary Access-method isused to access file in which manner?

1650


What do you mean by Databound Controls Explain?

1633


What is DAO?

1780


How can I access a record by record number?

1259


What is data binding in vb net?

695


Which type of object requires this object?

1725


How would you activate animation control?

2065


Write the Steps in Creating an ActiveX Control?

1701


How can you check whether a record is valid record or Invalid record using ADO control or Object?

1607


Which method is preferred to save datas like database?

1653


How do I use GetPrivateProfileString to read from INI files?

1177


What are the types of line styles available in Treeview Control?

1649