Question: What is the purpose of the 'this' keyword in object-oriented programming?Answer: The 'this' keyword refers to the current instance of a class and is used to access instance variables and methods.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users:
- What is the difference between a stack and a queue?
- What is the purpose of an index in a database?
- What is the purpose of the \'git\' version control system?