What is the difference between a property a method and an
event? Give an example of each.

Answer Posted / manish mehta

Object has three characteristics
and these are
1.Property
2.Method
3.Event

Property represents (data) characteristic of an object..

Method represents the behavior(action)performed by an object..

Event is msg sent by an object to signal an activity


Example:-

For a class Employee
FirstName,LastName,Salary <------ Properties
Hire,Promote <------ Methods
On hire, On promote <------ Events

Is This Answer Correct ?    24 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to down load image properties.

597


What is the use of progress Bar Control?

1496


What is DDE?

1768


Through which protocol OLEDB components are interfaced?

1707


Can any one please suggest which institute is providing Advance Excel & VBA Macros in Excel training in Hyderabad.

1731






What language does visual basic use?

503


What is the need of tabindex property is label control?

1593


How do I dial a phone number without using the MSCOMM VBX?

1259


How many File System Controls are there Explain?

1521


How do I do drag & drop between applications?

982


State about the different types of visual basic data?

542


What is the use of Imagelist Controls ?

1448


What is the difference between adodc and adodb in vb?

487


How many ways we can access file using VB?

1609


What is recordset in visual basic?

560