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
Allowed program to auto-correct the database when loading a presentation.
Explain the difference between web.config and machine.config and where it will be ?
what is intermediate language?
What is private assembly?
Why do we use ansi keyword?
What are the differences between c# and visual basic.net?
Explain the difference between vb.net and c#, related to oops concepts?
Explain about visual basic?
Name the two main parts of .net?
Thank you for replying to my Question regarding Barcodes in VB.net. My next question is that how to use Barcode Fonts in VB.net I need a small code to Generate Barcodes in VB.net from a string of Values. This is the only problem i am left with in my project. Any body can help me please.
What is normal jit?
What does assert() method do In VB.NET
I Am Developing A project where I can send Message from One Computer to Another Computer With The Help Of LAN.Already I Have developed..It is working Fine With The Details Of ..TO,FROM,REF No,DATE,BODY...Now I Want To Add Attachments part in the same projects...How Can I Send Attachment File & How To Send It..I Am Working in VB.Net 2005 With out Any database. Can Any One Help me ??How To Write Code??Plz Send me a copy to my Mail also...I Dont Need Any Software Available in The Internet...Plz refer me The Code in VB.Net maloy.adhikari@in.com
Define manifest?
How a base class method is hidden?