• +91 9723535972
  • info@interviewmaterial.com

VB.Net Interview Questions and Answers

Question - How Do You Define A Read Only Properly In A Class Module?

Answer -

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

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners