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

Answer Posted / gaurav

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 ?    92 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you Navigate from the DHTML application to another DHTML application? .

1606


Difference between Linked Object and Embedded Object?

1768


how to make unlimited id(1rimjim,2rimjim,3rimjim....etc) login grp chat pogram for jabber?

1950


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

1703


___,__,___ are the type of combo box?

1125






Which language is used in visual basic?

478


Explain the differences between ActiveX Dll and ActiveX Exe?

2049


What is meant by Establish Connection in RDO?

1660


How would you create properties by using class Builder Wizard?

2086


How do I get my application on top?

909


what are the Differences between Recordset and Resultsets?

1983


How would you find out the value property in Slider Bar Control?

1412


What is Pseudocode?

900


what is the Difference between Recordset and Querydef?

1841


____ is the difference between Listindex and Tab index.

1278