This means that your method returns a reference to the method1 object. A link is like a pointer that it refers to an object, not a copy of it, but the difference with the pointer is that the links are:
- can never be undefined / null
- you cannot do pointer arithmetic with them
Thus, it is a kind of lightweight, safer option for pointers.
source
share