Module YourClassTest Sub Main() Dim obj As New YourClass() obj.DisplayMessage() End Sub End Module Public Class YourClass Public Sub DisplayMessage() Console.WriteLine("Welcome!") End Sub End Class
Welcome!