Question OOP-CLS-0005
EasyWhat does the 'this' keyword refer to in Java and C++?
- A.
The current object
- B.
The parent class
- C.
The main function
- D.
A new object
Show answer and explanation
Answer: A
Inside a method, this refers to the object on which the method was called.