Not using this keyword in getter method?

At 10:10, the getter method’s don’t have this keyword in return statement. How will they know which object’s name or age to return?

Hey @rishabhs70427_ac9bc1ed91d2a939 Since there is only one age for the getAge method which is global variable AGE so no need to specify by using this.age

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.