Interviewer And Interviewee Guide

VB .Net Interview Question:

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
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.

Interview Questions Answers .ORG