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

Write the Steps in Creating an ActiveX Control?

1530


Is there any Edit method in ADO Data Access method?

1520


What is constructors and distructors.

1664


how a multiple routing works ?

2303


How would you create your application in DHTML?

1407






How would you run your ActiveX Document Dll?

1440


Scope of API?s can be of different types, what are they Why API functions are Required?

1485


How would you create Visual basic Document file?

1387


How do I get my application on top?

936


How do I make my applications screen-resolution independent?

1025


____ property is used to lock a textbox to enter a datas.

1171


How can I call a 'hidden' DOS program from VB?

1028


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

1632


How to down load image properties.

612


Is the Variant type slower than using other variable types?

1114