Constructors

AP Computer Science A· difficulty 3/5

A constructor's name must match

  • A

    The variable name

  • B

    The class name

    check_circle
  • C

    The package name

  • D

    main

Explanation

Constructors must have the same name as the class.

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

Related questions