Support Forums
cegonsoft india | learn vb.net with examples - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19)
+---- Thread: cegonsoft india | learn vb.net with examples (/showthread.php?tid=22076)



cegonsoft india | learn vb.net with examples - MikeHenery9 - 09-09-2011

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