5.9 this Keyword

Enduring Understanding

To find specific solutions to generalizable problems, programmers include variables in their code so that the same algorithm runs using different input values.

Learning Objective

Evaluate object reference expressions that use the keyword this.

Essential Knowledge

Within a non-static method or a constructor, the keyword this is a reference to the current object—the object whose method or constructor is being called.

The keyword this can be used to pass the current object as an actual parameter in a method call.

Last updated

Was this helpful?