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
___,___ arguments will be used to run a executable program in shell function
How can you check whether a record is valid record or Invalid record using ADO control or Object?
What is the default workspace?
What is the difference between change event in normal combobox and dbcombobox?
Why doesn't "my string" & Chr$(13) do what I want?
How do I create a window with a small title bar as in a floating toolbar?
What are the new events in textbox that has been included in VB ?
What is script control?
Data Control missing from toolbox when I use VB under NT3.5. Why?
Why visual basic is used?
____ property of menu cannot be set at run time.
what are the Default cursor Type and LockEdit type in DAO?
How do I implement an incremental search in list/dir/combo/file boxes?
What is database vb?
Types of cursors in DAO?