Support Forums

Full Version: cegonsoft india | learn vb.net with examples
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
VB.NET program examples

Class stud
Dim id As String
ReadOnly Property IDNO()
Get
Return id
End Get
End Property
Sub New()
id = "qr78"
End Sub
Sub New(ByVal ids As String)
id = ids
End Sub
End Class
Module Module1

Sub Main()
Dim obj As New stud
Console.WriteLine("ID No is : " & obj.IDNO)
obj = New stud("sfg34")
Console.WriteLine("ID No is : " & obj.IDNO)
End Sub
End Module

more at Cegonsoft