Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cegonsoft india | learn vb.net with examples
#1
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

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Want to learn VB Fravras 5 1,279 03-09-2013, 04:40 AM
Last Post: Matijasevic
  [Need Help Badly]-- What is the best way to learn? ): hackopz 8 1,480 10-01-2012, 11:30 PM
Last Post: XDarkCoder
  What will I accomplish if I learn VB n00bikscube 7 2,046 04-06-2012, 06:26 AM
Last Post: Cronus
  [VB.net]Learn WPF [WPF Tutorial] ThePrinCe 1 1,182 12-03-2011, 10:54 PM
Last Post: HostGap
  Is Vb.net worth it to learn? Bauer 39 14,205 12-03-2011, 10:54 PM
Last Post: Dervie

Forum Jump:


Users browsing this thread: 1 Guest(s)