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
Explain the differences between vb.net and c#, related to oops concepts?
Observations between vb.net and vc#.net?
What is the difference between compiler and interpreter?
Did vb6 support multi-threading ?
What is the differences between dataset.clone and dataset.copy?
Define clr?
Is vb.net a programming language?
Explain how to achieve polymorphism in vb.net?
what is the advantage of option strict on?
What is the maximum size of the textbox?
Explain convert.tostring and i.tostring method?
Explain the use of serialization and deserialization?
Explain private assembly?
what is common language specification?
What languages does the .net framework support?