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
Which method is preferred to save datas like database?
How do I add a form in visual basic?
How would you create properties in ActiveX Control?
what are the Types of LockEdits in RDO?
What is the use of command Object?What are the various types of variables?
Explain Types of DBCombo boxes?
what is the Difference between Recordset and Querydef?
How do I access C style strings?
What is the use of Active Control Property?
What is the need of tabindex property is label control.
Is there any way to pass a variable to a form apart from using global variables?
How do I change the color of a form in visual basic?
What is the difference between c++ and visual basic?
Is visual basic still used?
What do you mean by provider?