1.10 Calling Class Methods

Suggested Skills: 2.C, 3.C, 3.D

LO 1.10.A — Develop code to call class methods and determine the result of those calls.

  • 1.10.A.1Class methods are associated with the class, not instances of the class. Class methods include the keyword static in the header before the method name.

  • 1.10.A.2 — Class methods are typically called using the class name along with the dot operator. When the method call occurs in the defining class, the use of the class name is optional in the call.

Last updated

Was this helpful?