3. Class Creation

This Keyword — Quiz

Test your understanding of this keyword with 5 practice questions.

Read the lesson first

Practice Questions

Question 1

In a class, what does the keyword $this$ usually refer to?

Question 2

Why is $this$ often used in a constructor?

Question 3

What does $this.age = age$ mean inside a constructor?

Question 4

Which statement best describes an instance variable?

Question 5

When is $this$ available to use?