Answer: The this keyword refers to the current object in a method or constructor. The most common use of the this keyword is to eliminate the confusion between class attributes and parameters with the same name.
Not sure what course is right for you?
Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.