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 MSIL.

8 Answers   HDFC,


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

3 Answers   Ascent, CCS, MTBC,


sir i want to ask you that how can i fetch or get sql data into texboxes.where i want to show record in specific texboxes related to student information.when i click on button all data show on texboxes when i put id or name plz inform me on my id

1 Answers  


What is friend and protected-friend access specifier in vb.net?

1 Answers  


What is the significance of delegates. Where should they be used?

0 Answers  






What is the main purpose of garbage collector?

0 Answers  


Explain convert.tostring and i.tostring method?

0 Answers  


What languages does the .net framework support?

0 Answers  


I'm unable to open a .hlp file using vb.net application.

1 Answers  


what is difference between web.config and machine.config and where it will be ?

0 Answers  


What is pre-jit?

0 Answers  


How is VB.Net different from VB6?

7 Answers   Ksb,


Categories