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

Draw Sequence Modal of DAO? Explain.

1703


___ property used to add a menus at runtime.

1238


What are the uses of List View Control?

1561


What is the use of NEW Keyword? Explain.

1559


How do I program the Novell NetWare API from VB?

958






Which type of object requires this object?

1500


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

1396


Difference between Linked Object and Embedded Object?

1791


I get a "file not found" error on the IIF function when I distribute by program. Why?

1047


how to use unicode data in vb6 regarding to telugu language, my output is in only telugu language

3085


What is the use of debug Window?

1547


___ argument can be used to make a menuitem into bold.

1290


What is the use of progress Bar Control?

1499


Write the Steps in Creating an ActiveX Control?

1972


How can you Add API functions to your Application?

1357