Constructors

AP Computer Science A· difficulty 4/5

If you write any constructor, Java

  • A

    Removes the constructor

  • B

    No longer adds a default; you must add it explicitly if needed

    check_circle
  • C

    Still adds a default no-arg one

  • D

    Throws compile error

Explanation

Once you declare any constructor, the implicit no-arg default is suppressed.

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

Related questions