What is the difference between a property a method and an
event? Give an example of each.

Answers were Sorted based on User's Feedback



What is the difference between a property a method and an event? Give an example of each...

Answer / lavanya

event--simily it is an one action.
property--it is an one feature

Is This Answer Correct ?    1 Yes 0 No

What is the difference between a property a method and an event? Give an example of each...

Answer / sk sultan ahmad

A Property is a way to expose an internal data element of a class in a simple manner.
Method is a block of code that contain a series of statement.
Event are programming construct use to pass notification back from one class.

Is This Answer Correct ?    5 Yes 5 No

What is the difference between a property a method and an event? Give an example of each...

Answer / gulimtiaz

Property are elements which belong to an object, for example its height, width, color etc. While Methods belong to the action of an object, for example, move, delete,etc

Is This Answer Correct ?    0 Yes 0 No

What is the difference between a property a method and an event? Give an example of each...

Answer / rajeszx

object =car

property

color--> red
tech features--> abs,four wheel drive, 6 airbags, v8 engine

method

starting a car
braking a car
change to eco mode
change to sport mode

event

if fuel is low it warns

if door not closed while in driving it warns

Is This Answer Correct ?    0 Yes 0 No

What is the difference between a property a method and an event? Give an example of each...

Answer / vivek gupta

Methods are executed at run time only.Methods are stored
multiple information.
Properties are executed at both, designing as well as run
time.Its work on single value only.

Is This Answer Correct ?    0 Yes 5 No

What is the difference between a property a method and an event? Give an example of each...

Answer / souvik

WHAT IS THE DIFFERENCE BETWEEN EVENT PROCEDURE AND FUNCTION
PROCEDURE ?

Is This Answer Correct ?    13 Yes 19 No

What is the difference between a property a method and an event? Give an example of each...

Answer / cherran

Property - Each and every control has its own property like
Caption, Name, TabIndex etc..

Method - Each and every control has its own method Like
SetFocus, Refresh etc... ( Which methods are not available
in a controls property window)

Event - Each and every control has its own events, which
allows user interaction between controls like command
buttons Click Event, TextBox's LostFocus Event etc...

Is This Answer Correct ?    34 Yes 47 No

What is the difference between a property a method and an event? Give an example of each...

Answer / suresh

1. Text1.color ------ is a property
2. Text1.text ------- is Method
3. button 1. Click -- is an event

Is This Answer Correct ?    115 Yes 131 No

Post New Answer

More Visual Basic Interview Questions

advantage and disadvantage in visual-basic and ms-access please tell me or send my mail-id

0 Answers  


What is the purpose of the DoEvents command?

2 Answers  


___,_____ and ____ container objects.

0 Answers  


What is the use of Scalewidth and ScaleHeight Proeperty?

0 Answers  


Difference Types of Procedures in VB?

3 Answers   JVS, Wipro,


Explain the usage of Web Browser Control?

0 Answers  


What is the use of Tabledef?

0 Answers  


Can we change back color of command button control? if yes than how it is possible?

4 Answers   Wipro,


what is the Advantage of ActiveX Dll over Active Exe ?

1 Answers  


what is the Need of zorder method?

2 Answers  


How would you access objects created in ActiveX Exe and ActiveX Dll

0 Answers  


What is DBSqlPassThrough?

0 Answers  


Categories