What is an indexed property?



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

Post New Answer

More VB.NET Interview Questions

Why do we use ansi keyword?

0 Answers  


What is break mode? What are the options to step through code?

0 Answers  


IT openings for Experienced candiates for Java / .NET

1 Answers  


What is stack used for in vb. Net?

0 Answers  


Name the class which allows an element to be accessed using unique key?

0 Answers  






What is the difference between import system.data.sqlclient and system.data.oledb?

0 Answers  


Explain some of the exclusive features which are present in vb?

0 Answers  


What is the difference between manifest and metadata?

0 Answers  


What are the features of c# which are not present in vb.net?

0 Answers  


Display a roll having minimum marks in two subjects?

1 Answers   Patni,


What is the use of internal keyword?

0 Answers  


What would you do to remove microsoft visual basic name space?

0 Answers  


Categories