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
How do I prevent multiple instances of my program?
How can you determine performance standards?
How to get freefile location in memory?
How would you attach pictures in Treeview Control?
How do I speed up control property access?
Advantage of ActiveX Dll over Active Exe.
Explain about Caturing Baseline.
How to use hyperlink?
State about the different types of visual basic data?
How do I play MID, WAV or other multimedia files?
What is controls in vb?
what are the different Types of Recordsets.
How do I add a form in visual basic?
What is understand in resource tracking?
Is it possible to Manipulate data through flexgrid? Explain.