Multiple choice technology programming languages

How do you create method which can be accessed without the use of objects reference ?

  1. Using FRIEND Keyword

  2. Using STATIC Keyword

  3. Using SHARED Keyword

  4. NONE

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

In VB.NET, the Shared keyword allows methods (and other members) to be called without creating an instance of the class. This is equivalent to the 'static' keyword in languages like C# or Java. Option A (FRIEND) is an access modifier that controls visibility, not whether an instance is required.