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 |
Why do we use ansi keyword?
What is break mode? What are the options to step through code?
IT openings for Experienced candiates for Java / .NET
What is stack used for in vb. Net?
Name the class which allows an element to be accessed using unique key?
What is the difference between import system.data.sqlclient and system.data.oledb?
Explain some of the exclusive features which are present in vb?
What is the difference between manifest and metadata?
What are the features of c# which are not present in vb.net?
Display a roll having minimum marks in two subjects?
What is the use of internal keyword?
What would you do to remove microsoft visual basic name space?