Multiple choice technology programming languages

How does VB.NET instantiates the .NET object

  1. Using NEW keyword

  2. Using CREATEOBJECT keyword

  3. Using GETOBJECT keyword

  4. Both A & B

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In VB.NET, objects are instantiated using the 'New' keyword (e.g., 'Dim obj As New ClassName()'). CREATEOBJECT is used for COM objects (legacy VB6 compatibility) and GETOBJECT retrieves existing object references - neither is the standard .NET way.