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
Where can I get good up-to-date information about VB?
Why API functions are Required?
How would you convert a form into document?
What is ODBC Direct and Microsoft Jet Database Engine ?
How would you attach an ActiveX control in Your Application?
How do you change the system menu (on the Control-Menu Box)?
What is ado data control in vb?
Explain about the creation of EXE files with Visual Basic?
How would you Create a Query Builder and Explain its uses ?
How do I force a file dialogue box to reread the currect disk?
What is Seek Method which type of record set is available this?
advantage and disadvantage in visual-basic and ms-access please tell me or send my mail-id
what are the Types of DBCombo boxes?
Explain about control properties?
Is it possible to Manipulate data through flexgrid? Explain.