Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain Get, Let, Set Properties.



Explain Get, Let, Set Properties...

Answer / vishal sinha

The Let property is used to assign values to the attributes
of a class. The following is an example of a Let property.

Public Property Let Minute(ByVal m As Integer)
If (m >= 0 And m < 60) Then
mMinute = m
Else
mMinute = 0
End If
End Property


With Get and Set, it's as simple as it sounds...

The Get property is similar to a function in that it returns
a value. It is used return the attributes of a class. The
following is an example of a Get Property called Minute that
returns the private data member, mMinute.

Public Property Get Minute() As Integer
Minute = mMinute
End Property

Objects may not be assigned values directly. Instead, an
object reference is required. With properties, this is
achieved using the Set property.

Public Property Set EndTime(ByVal t As CClock)
Set mFinish = t
End Property

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More Visual Basic Interview Questions

What is the use of Imagelist Controls ?

0 Answers  


Why we use Treeview Control?

2 Answers  


What is ODBC Direct and Microsoft Jet Database Engine ?

0 Answers  


What is the difference between early binding and late binding?

2 Answers   TCS,


___ Property is to compress a image in image control.

1 Answers  


How would you Create a Query Builder and Explain its uses ?

0 Answers  


what are the Types of LockEdits in RDO?

0 Answers  


what are the Types of DBCombo boxes?

0 Answers  


How to trap Data Base Error?

1 Answers  


in vb6.0 can we use function keys (F1 to F12) in form_keypress event in a form which contains commandbutton (s) control? if yes, then explain me how it is possible. Thanks.

2 Answers   Wipro,


In visual source safe if in middle of my program power was off and it was not save then wat will happen whether it will save or not? can any body tel me the answer for this.

8 Answers   Wipro,


what are the Differenct Types of Procedures in VB?

0 Answers  


Categories