Blog

How to define the Structure in VB.NET

Posted by Dinesh Beniwal Blogs | Visual Basic Language Sep 02, 2010
In this small blog i will explain how to define the Structure in VB.NET.
HTML clipboard

    Structure Point

        Public a As Integer

        Public b As Integer

        Public Sub New(ByVal a As Integer, ByVal b As Integer)

            Me.a = a

            Me.b = b

        End Sub

        Public Overrides Function ToString() As String

            Return "(" + x.ToString() + ", " + y.ToString() + ")"

        End Function

    End Structure

share this blog :
post comment
 

your article is not clear

Posted by emeka donatus Oct 22, 2010

your article is not clear

Posted by emeka donatus Oct 22, 2010