Answer Posted / 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 |
Post New Answer View All Answers
What does assert() method do In VB.NET
Thank you for replying to my Question regarding Barcodes in VB.net. My next question is that how to use Barcode Fonts in VB.net I need a small code to Generate Barcodes in VB.net from a string of Values. This is the only problem i am left with in my project. Any body can help me please.
How many languages are supported by .net?
What is DLL HELL in VB.NET
Explain public assembly?
What is branching logic control in VB.NET?
What is the difference between manifest and metadata?
Explain the difference between value and reference types?
What is the Advantage of vb.net over vb
what is interface and when it is used?
What is sorting in vb?
What are the types of generations in garbage collector?
List the different types of assembly?
Explain convert.tostring and i.tostring method?
Which class allows an element to be accessed using unique key?