Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Public Class Hello
Public Greeting As string
Public Number As Integer
Public Example As string
Public Function Format( ) As String
Return Greeting & " " & Example
End Function
End Class
Module VBModule
Sub Main()
Dim h As New Hello()
h.Greeting = "got the class to work"
h.Number = 30
h.Example = "Making a object in Visual Basic.net is easier than in Java"
Console.WriteLine(h.Format)
Console.WriteLine(h.Number)
End Sub
End Module
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more