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
Write the Steps in Creating an ActiveX Control?
Is there any Edit method in ADO Data Access method?
What is constructors and distructors.
how a multiple routing works ?
How would you create your application in DHTML?
How would you run your ActiveX Document Dll?
Scope of API?s can be of different types, what are they Why API functions are Required?
How would you create Visual basic Document file?
How do I get my application on top?
How do I make my applications screen-resolution independent?
____ property is used to lock a textbox to enter a datas.
How can I call a 'hidden' DOS program from VB?
How can you Navigate from the DHTML application to another DHTML application? .
How to down load image properties.
Is the Variant type slower than using other variable types?