How do you define a read only property in a class module?
Submitted by: AdministratorPublic 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
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
Top VB .Net Questions
☺ | What is difference between import System.Data.SqlClient,System.Data.Oledb? |
☺ | What does it meant to say "the canonical" form of XML? |
☺ | Differences between VB.Net and C#, related to OOPS concepts |
☺ | How to store and retrieve images in SQL server database through VB.NET? |
☺ | Which is the tool which can convert Visual basic old version to .NET compatibility version? |
Top Dot Net Technologies Categories
☺ | MSF Interview Questions. |
☺ | .Net Architecture Interview Questions. |
☺ | ASP.Net MVC Interview Questions. |
☺ | Entity Framework Interview Questions. |
☺ | C# (Sharp) Programming Language Interview Questions. |