What are the 6 ways to use this keyword ?
Answers
Answered by
0
The this keyword is used when you need to use class global variable in the constructors. this is a reference to the current object — the object whose method or constructor is being called. You can refer to any member of the current object from within an instance method or a constructor by using this.
Similar questions