What is an indexed property?
Answer / anil sharma
you include the index parameter in the Property statement.
In this example, the test_number parameter is the index for
the Scores property.
Public Class Student
' The private array of scores.
Private m_Scores(9) As Integer
' The indexed Score property procedures.
Public Property Score(ByVal test_number As Integer) As _
Integer
Get
Return m_Scores(test_number)
End Get
Set(ByVal Value As Integer)
m_Scores(test_number) = Value
End Set
End Property
End Class
Is This Answer Correct ? | 1 Yes | 1 No |
I have an opening for "APRIMO" Developer in Mumbai Location
Difference between VB dll and assemblies in .NET ?
What are the different variables in vb.net?
How does you get record no from 5 to 15 from a dataset of 100 records?
Advantage of vb.net over vb ?
Explain about branching logic control in vb.net?
What is trace in vb.net?
Can you please explain the difference between namespace and assembly?
Write a VB.Net console program to check whether a number is perfect or not.
what are Fixed memory leaks and threads locking problems.
When do you use virutal keyword?
What is the Common Language Runtime?