How do you define a read only property in a class module?

Submitted by: Administrator
Public Class YourClass
Private yourName As String
Private yourNumber As Decimal

Public Sub New(breed As String)
yourName = breed
End Sub

Public ReadOnly Property Name() As String
Get
Return yourName
End Get
End Property
Submitted by: Administrator

Read Online VB .Net Job Interview Questions And Answers