Both the methods navigateTomyProjects()
and addDefaultProjectBymyProjects()
reside as instance methods in the same class. As a result, either of the methods can access the other method without explicitly creating an object of the class.
To be more precise, addDefaultProjectBymyProjects()
calls navigateTomyProjects()
internally as this.navigateTomyProjects()
. Here, the this
keyword refers to the current object (invoking object).