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
What are 3 main differences between flexgrid control and dbgrid control?
How to get freefile location in memory?
How would you attach pictures in column headers of List View Control?
What is the use of Visual Basic Document file?
Which type of object requires this object?
How would you create Visual basic Document file?
How do I remove/change the picture property of a control at design time?
what is the Difference between Linked Object and Embedded Object?
How would you attach pictures in column headers of List View Control?
What do you mean by provider?
How do I set the Windows wallpaper at runtime?
What is the difference between c++ and visual basic?
___ is a property to resize a label control according to your caption.
Is the Access Engine and Visual Basic Pro good enough for database work?
How many File System Controls are there Explain?