Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
The `this` keyword refers to the current object instance within a method or constructor. It's used to differentiate between instance variables and parameters with matching names.
Related terms
Super: The `super` keyword refers to the superclass (parent class) of an object. It's used when there is inheritance, allowing accessing superclass members from within subclass methods.
An instance variable is a variable declared in a class but outside any method. Each object created from the class has its own copy of the instance variables.