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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the advantage of option strict on?

873


What do you mean by Redim in VB.NET?

1106


What is datatype conversion?

1041


How can I extract the formated word(bold,italic,underline,font,color etc) from the msword file.?

965


What is the difference between datagrid and gridview?

957


How can we remove handlers at run time?

1010


Name the tool which can convert visual basic old version to .net compatibility version?

975


What is the size of .net object?

969


What is the main purpose of garbage collector?

878


Explain about the ruby interface generator?

930


What are the different types of applications supported in .net (or) .net framework?

875


Explain strong name in .net assembly?

923


What are the difference between dispose(), close(), exit(), end()?

852


Explain about the keyword must inherit?

936


Write a program that would find the nth term of a geometric progression, given the value of first term and common ratio. Any inbuilt function that the language provides for calculating exponent should not be used.

3484