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

___,___ arguments will be used to run a executable program in shell function

1230


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

1403


What is the default workspace?

1645


What is the difference between change event in normal combobox and dbcombobox?

1657


Why doesn't "my string" & Chr$(13) do what I want?

1099






How do I create a window with a small title bar as in a floating toolbar?

865


What are the new events in textbox that has been included in VB ?

1351


What is script control?

575


Data Control missing from toolbox when I use VB under NT3.5. Why?

928


Why visual basic is used?

535


____ property of menu cannot be set at run time.

1167


what are the Default cursor Type and LockEdit type in DAO?

1737


How do I implement an incremental search in list/dir/combo/file boxes?

997


What is database vb?

508


Types of cursors in DAO?

1490