Sunday, May 3, 2015

Create a class and Object

Class a
        Function display()
         Console.WriteLine("hello world")
        End Function
End Class

    Sub Main()

        Dim o As a = New a()
        o.display()
        Console.ReadLine()
    End Sub

No comments:

Post a Comment