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 |
How the image application?
How many tabs in a tabbed dialog do you consider appropriate?
What's the difference between MODAL and MODELESS forms?
What is the use of Tabledef?
in ADO connection string if password is leave blank and all others are given. what will happen
Wat is Apartment Model?
Difference between Linked Object and Embedded Object?
Wat is multithreading in VB?
which collection in recordset used to assign a value from textbox to table columns without making abinding in datacontrol?
which Property is used to count no. of items in a combobox?
Why API functions are Required?
What is the current version of Visual Basic for Windows?