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
Posted Date:- 2021-09-21 04:49:39
What is the difference between ‘system.string’ and ‘system.string builder’ classes?
What do you understand by Global Assembly Cache (GAC)?
What is your understanding of .net framework?
What are Destructors in VB.NET?
Enlist Tools for VB.NET Development.
Explain Friend Access Modifier in VB.NET.
Enlist the Differences between VB and VB.NET.
Difference between System.String and System.StringBuilder classes?
What is the use of Option explicit?
What are the types of generations in garbage collector?
What are all the differences between Dispose and Finalize()?
What is ReDim keyword and its use?
Test if an object implements an interface
Difference Between Vb Dll And Assemblies In .net ?
Is Vb.net Object Oriented? What Are The Inheritances Does Vb.net Support ?
What are all the differences between Dispose and Finalize()?
What is jagged array in VB.Net?
What is the use of New Keyword?
Difference between int and int32?
Difference between System.String and System.StringBuilder classes?
What is Garbage Collection in VB.net?
Explain jagged array in VB.Net?
What are Option Strict and Option Explicit?
What Is Intermediate Language In .net ?
How Do You Rate Yourself In .net ?
How Do You Validate Date By Using Which Validation Control?
How Can We Assigns Items On Listbox So That It Will Show Rowwise Please Write The Code For It.
What are Option Strict, Option Explicit, and INTERNAL keyword in.Net Framework?
What is INTERNAL keyword in .Net Framework?
Explain Metadata, namespace, which namespace is used for accessing the data, What is JIT?
What are the different types of assembly?
What's the difference between or and OrElse?
What is strong name in .NET assembly?
What is an assembly and its use?
Which namespace are used for accessing the data?
Define CTS in the Vb.Net framework?