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 |
What is tracing?
Explain the difference between dispose and finalize()?
how to get dynamic control array position or its index position?
Which properties are used to bind a DataGridView control?
Hi I am planning to take interview in VB.net,can any one share your interview Questions for a Entry-level job. Regards Lina
What is the difference between datagrid and gridview?
What are the shared variables?
What are the objects in asp.net and tell the purpose of those objects
What is public assembly?
What is the difference b/w Readonly Variable and Constant Variable?
What are the advantages of VB.NET?
Explain convert.tostring and i.tostring method?