Multiple choice technology programming languages

3) How can you call one constructor from another if a class has multiple constructors

  1. Cant do

  2. use this ()

  3. new keyword

  4. using objectname

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

To call one constructor from another in the same class, you use the this() keyword as the first statement. For example, this(5) calls a constructor taking an int parameter. Option A is incorrect because constructor chaining is supported. Option C would create a new object, not call another constructor.