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 data control in vb?

562


How can I create a VBX?

1108


How do I dial a phone number without using the MSCOMM VBX?

1278


What is datagrid in vb net?

519


DHTML Is used for what?

1424






Is it possible to set a shortcut key for label?

1414


How come I get a "No Current Record" error when I use a a Data Control on an empty table?

1070


___ Property is used to count no. of items in a combobox.

972


What do you know about chaining views.

543


Explain what is Visual basic?

589


Difference between Tabletype and Snapshot?

1497


___,___ and __ are difference between image and picture controls.

1130


how to use telugu language in vb6? any unicode data is available for telugu or not?yes means how to use? my desired output is telugu only? i am doing project like(telugu calendar),my output should be print in telugu only? pls send me the solution with code?

3016


How would you add elements and pictures to listitems in listview control?

1545


What is recordset in visual basic?

580