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 advantage of option strict on?
What do you mean by Redim in VB.NET?
What is datatype conversion?
How can I extract the formated word(bold,italic,underline,font,color etc) from the msword file.?
What is the difference between datagrid and gridview?
How can we remove handlers at run time?
Name the tool which can convert visual basic old version to .net compatibility version?
What is the size of .net object?
What is the main purpose of garbage collector?
Explain about the ruby interface generator?
What are the different types of applications supported in .net (or) .net framework?
Explain strong name in .net assembly?
What are the difference between dispose(), close(), exit(), end()?
Explain about the keyword must inherit?
Write a program that would find the nth term of a geometric progression, given the value of first term and common ratio. Any inbuilt function that the language provides for calculating exponent should not be used.