this keyword: Refers to the current object; used to distinguish instance variables from parameters with the same name.
How to apply it: Use this.name = name in constructors to disambiguate parameter and field names.
Course: AP Computer Science A · Unit: Writing Classes
Practice questions about this keyword on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.