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

I have an opening for "APRIMO" Developer in Mumbai Location

1 Answers  


Difference between VB dll and assemblies in .NET ?

5 Answers   Digital GlobalSoft,


What are the different variables in vb.net?

0 Answers  


How does you get record no from 5 to 15 from a dataset of 100 records?

3 Answers   ABC,


Advantage of vb.net over vb ?

6 Answers   Digital GlobalSoft,






Explain about branching logic control in vb.net?

0 Answers  


What is trace in vb.net?

0 Answers  


Can you please explain the difference between namespace and assembly?

0 Answers  


Write a VB.Net console program to check whether a number is perfect or not.

1 Answers   Wipro,


what are Fixed memory leaks and threads locking problems.

1 Answers  


When do you use virutal keyword?

0 Answers  


What is the Common Language Runtime?

10 Answers   Ksb,


Categories