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 do you understand by vb.net?
what is commom language runtime?
What are the difference between dispose(), close(), exit(), end()?
Explain an assembly and its use?
Explain how to achieve polymorphism in vb.net?
my project run very wel in my sytem yhen i am deploying my project on client machine ,after deployment i run my project then it show " can no find server name " what i do .
Write a program to find all text files in a logical drive and return the count of the number of files?
Define serialization in .net?
Described strong typing
Explain i.tostring method?
Name some of the features of C# which are not present in VB.NET?
So you know which dll is used for microsoft .net run time?
What are option strict and option explicit?
Which dll is used for microsoft .net run time?
Explain option explicit?