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 is the use of ActiveX Documents?
what are the Types of Resultsets?
What is connection object in vb net?
How do you avoid the "Invalid use of null" error when reading null values from a database?
How would you convert a form into document?
What is dao in visual basic?
Types of LockEdits in DAO? 51 .Types of Recordsets.
How would you use ActiveX Dll and ActiveX Exe in your application?
How to use advanced data-bound controls.
Is visual basic easy?
Timer control contains ________ no. of events.
Which property of textbox cannot be changed at runtime. What is the max size of textbox?
Explain Types of DBCombo boxes?
How do I make my applications screen-resolution independent?
Is visualvm free?