Object-Oriented Programming (OOP)
Identify the correct concept described as: a reference used within a class to refer to the current instance of the object.
- A. Multiple inheritance
- B. Constructor
- C. This/self keyword ✓
- D. Method overloading
Correct answer
C. This/self keyword
Explanation
This/self keyword refers to a reference used within a class to refer to the current instance of the object.