Constructors

AP Computer Science A· difficulty 4/5

To call another constructor of the same class:

  • A

    self(...)

  • B

    init(...)

  • C

    super(...)

  • D

    this(...)

    check_circle

Explanation

<code>this(args)</code> must be the first statement in another constructor.

Want 10 more like this — adaptive to your weak spots?

Related questions