Public Class class1 Dim n As Integer Sub New() Console.WriteLine("Inside Constructor...") Console.Write("Enter the value of n : ") n = CInt(Console.ReadLine()) End Sub Sub display() Console.WriteLine("n= " + n.ToString()) End Sub End Class Module DisplayUsingClass Sub Main() Dim obj As New class1 obj.display() Console.ReadLine() End Sub End Module
Visual Basic dot net VB.net programming microsoft .net framework object oriented language network enabled technology visual basic 2005 IDE integrated development environment console application microsoft cre common runtime environment
Simple Display Using Class
Subscribe to:
Post Comments (Atom)
javascript examples to make scripts
ReplyDelete