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 parameters collection?
What language does visual basic use?
Where can I get good up-to-date information about VB?
what are the Differences between Recordset and Resultsets?
What is rdo in vb?
____ property of menu cannot be set at run time.
Why do I get "object not an array" when I try reference the fields of a global object variable which I have set to a table?
What is ado data control in vb6 0?
How do you change the system menu (on the Control-Menu Box)?
What is the use of property page Wizard in ActiveX Control?
What are the tools in visual basic?
How many ways you can access file using VB?
How do I make a text box not beep but do something else when I hit the Enter key?
How can you filter out specific type of file using file system controls?
What are 3 main differences between flexgrid control and dbgrid control?