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
Explain the differences between ActiveX Dll and ActiveX Exe?
Is it possible to Manipulate data through flexgrid? Explain.
How would you navigate between one document to another document
what are the Types of LockEdits in RDO?
What is ActiveX Dll and ActiveX Exe?
What is recordset in visual basic?
Differentiate between DAO,ADO and Adodc as in data access objects?
What is the use of debug Window?
What are the tools available for Debuggiu in VB?
which property of menu cannot be set at run time.
Why visual basic is used?
How would you attach pictures in column headers of List View Control?
It possible to call OLEDB?s Features directly in VB without using any control?
What is instantiating?
Explain the creation project schedule.