Please enable JavaScript to use CodeHS

Chapter 5

Writing Classes

5.9 this Keyword

this Keyword

Use this As An Actual Parameter

Rectangles and this

Student and this

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Write Your Own CodeHS


Term Definition
this Keyword Makes a call to the current object in a class file. Allows programmers to specify which objects and instance variables should be called.