Skip to content
Sharp

Object-oriented programming · interview question

In the context of classes, what does 'this' represent?

Multiple choiceEasychapter-2-curatedpremiumoopthis-keyword
Choose one answer
Answer and explanation

Correct answer

A. The current object instance.

Why

'this' represents the current object instance of a class. It is used to access instance variables and methods.

Test yourself on Object-oriented programming

A free test with instant, explained results. No account needed.

Start free test
All Object-oriented programming questions →