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 can you force new objects to be created on new threads?
Clear property is available in hich control?
What is the use of Imagelist Controls
What are the Internet tools available in VB6.0?
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.
How would you attach pictures in Treeview Control?
What type of recordsets are available in ADO?
how to use unicode data in vb6 regarding to telugu language, my output is in only telugu language
What is executenonquery in vb net?
What is the benefit of wrapping database calls into MTS transactions?
How would you add elements and pictures to listitems in listview control?
What is the difference between Single and Double in VB?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)