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

What is tracing?

0 Answers  


Explain the difference between dispose and finalize()?

0 Answers  


how to get dynamic control array position or its index position?

0 Answers   CMC,


Which properties are used to bind a DataGridView control?

0 Answers  


Hi I am planning to take interview in VB.net,can any one share your interview Questions for a Entry-level job. Regards Lina

3 Answers  






What is the difference between datagrid and gridview?

0 Answers  


What are the shared variables?

0 Answers  


What are the objects in asp.net and tell the purpose of those objects

3 Answers   Ascent, CCS, MTBC,


What is public assembly?

0 Answers  


What is the difference b/w Readonly Variable and Constant Variable?

7 Answers   Ksb, Sonata,


What are the advantages of VB.NET?

0 Answers  


Explain convert.tostring and i.tostring method?

0 Answers  


Categories