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 is the use of parameters collection?

1552


What language does visual basic use?

514


Where can I get good up-to-date information about VB?

911


what are the Differences between Recordset and Resultsets?

2002


What is rdo in vb?

541






____ property of menu cannot be set at run time.

1163


Why do I get "object not an array" when I try reference the fields of a global object variable which I have set to a table?

1151


What is ado data control in vb6 0?

622


How do you change the system menu (on the Control-Menu Box)?

970


What is the use of property page Wizard in ActiveX Control?

1999


What are the tools in visual basic?

510


How many ways you can access file using VB?

573


How do I make a text box not beep but do something else when I hit the Enter key?

978


How can you filter out specific type of file using file system controls?

1365


What are 3 main differences between flexgrid control and dbgrid control?

1873