Static Variables and Methods

AP Computer Science A· difficulty 4/5

From an instance method, you can call a static method

  • A

    Yes (directly by name)

    check_circle
  • B

    Only via class name

  • C

    Only via the object

  • D

    Never

Explanation

Static methods are accessible from anywhere in the class.

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

Related questions