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
What is the use of Scalewidth and ScaleHeight Proeperty?
How would you convert a form into document?
Specify technical & functional architecture of your last 2 projects.
What are the uses of List View Control?
How many ways you can access file using VB?
What is the use of Imagelist Controls ?
What about DLL calls that require callbacks?
what is the control used to call a windows application.
What is visual basic used for?
What are the Internet tools available in VB6.0?
What is Pseudocode?
What is the use of ActiveX Documents?
Whether HTML supports multimedia: and document links?
What is ActiveX Dll and ActiveX Exe?
what are the Default cursor Type and LockEdit type in DAO?