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
What is controls in vb?
What are the rules which should be followed while naming a variable in VB?
___ Property is used to count no. of items in a combobox.
Binary Access-method isused to access file in which manner?
What do you mean by Databound Controls Explain?
What is DAO?
How can I access a record by record number?
What is data binding in vb net?
Which type of object requires this object?
How would you activate animation control?
Write the Steps in Creating an ActiveX Control?
How can you check whether a record is valid record or Invalid record using ADO control or Object?
Which method is preferred to save datas like database?
How do I use GetPrivateProfileString to read from INI files?
What are the types of line styles available in Treeview Control?