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

What are the types of Error? In which areas the Error occurs?

1834


How to customize workgroup message?

798


What do you mean by provider?

1645


What is database vb?

700


How come I get a "No Current Record" error when I use a a Data Control on an empty table?

1268






What is the use of Hyperlink control for DHTML applications?

2119


Write the steps in Creating ActiveX Dll and Active Exe?

1743


What is the use of Scalewidth and ScaleHeight Proeperty?

1682


Is it possible to change menu runtime using API? If yes? Specify the function names.

1748


How do I add a form in visual basic?

685


What is the difference between Msgbox Statement and MsgboxQ function?

1629


How do I make my applications screen-resolution independent?

1198


How to control the file?

821


How many objects resides in ADO ?

1679


To validate a range of values for a property whenever the property values changes,which type of property procedure you use?

1624