Write a program to demonstrate Constructors and Destructors in VB.net.

WAP to Demonstrate Constructors and Destructors in VB.net.   Imports System.Console Module Module1 Class base Private a As Integer Private b As Double Private c As String   Public Sub New(ByVal x As Integer, ByVal y As Double, ByVal z As String) WriteLine("Constructor Of Base Class Executed ! ") a = x b = y c = z WriteLine("a="...

Read More
admin October 17, 2014 0 Comments

Program in VB.Net to build a class which implements an interface

Que : Write a program in VB.Net to build a class which implements an interface Ans: Imports System.Console   Interface inf1 Sub show() Sub disp() End Interface   Class class1 : Implements inf1   Public Sub disp() Implements inf1.disp WriteLine("Disp of class 1") End Sub   Public Sub show() Implements inf1.show WriteLine("show of...

Read More
admin October 17, 2014 0 Comments