Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How do you declare static variable and how it is declared and what is its lifetime?

3 Answers   Infosys,


Write a program that accepts an array of numbers and a number, and return a string “Yes” if the number is found in the array, “No” if the number is not found in the array.

2 Answers  


What is the feature which is common to all .net languages?

0 Answers  


List the two main parts of .net?

0 Answers  


what are the difference between An input box and Message box ..?

6 Answers   CTS, TATA,


Described strong typing and weak typing?

0 Answers  


Describe about visual basic.net?

0 Answers  


Explain the difference between system.string and system.stringbuilder classes?

0 Answers  


Explain how to store decimal data in .net?

0 Answers  


What are the two main parts of .net?

0 Answers  


What are the differences between vb.net and c#, related to oops concepts

0 Answers  


What is the role of new keyword?

0 Answers  


Categories