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


Please Help Members By Posting Answers For Below Questions

What is the use of ActiveX Documents?

1577


what are the Types of Resultsets?

1665


What is connection object in vb net?

593


How do you avoid the "Invalid use of null" error when reading null values from a database?

1124


How would you convert a form into document?

1375






What is dao in visual basic?

535


Types of LockEdits in DAO? 51 .Types of Recordsets.

1367


How would you use ActiveX Dll and ActiveX Exe in your application?

1538


How to use advanced data-bound controls.

613


Is visual basic easy?

545


Timer control contains ________ no. of events.

1743


Which property of textbox cannot be changed at runtime. What is the max size of textbox?

572


Explain Types of DBCombo boxes?

596


How do I make my applications screen-resolution independent?

1025


Is visualvm free?

554