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 are the types of Error? In which areas the Error occurs?
How to customize workgroup message?
What do you mean by provider?
What is database vb?
How come I get a "No Current Record" error when I use a a Data Control on an empty table?
What is the use of Hyperlink control for DHTML applications?
Write the steps in Creating ActiveX Dll and Active Exe?
What is the use of Scalewidth and ScaleHeight Proeperty?
Is it possible to change menu runtime using API? If yes? Specify the function names.
How do I add a form in visual basic?
What is the difference between Msgbox Statement and MsgboxQ function?
How do I make my applications screen-resolution independent?
How to control the file?
How many objects resides in ADO ?
To validate a range of values for a property whenever the property values changes,which type of property procedure you use?