DEVFYI - Developer Resource - FYI

What are the different ways to Declare and Instantiate an object in Visual Basic 6?

Visual Basic Interview Questions and Answers


(Continued from previous question...)

7. What are the different ways to Declare and Instantiate an object in Visual Basic 6?

Dim obj as OBJ.CLASS with eitherSet obj = New OBJ.CLASS orSet obj = CreateObject(OBJ.CLASS?) orSet obj = GetObject( , OBJ.CLASS?)orDim obj as New OBJ.CLASS

(Continued on next question...)

Other Interview Questions