The funny thing is, the `toString()` method uses ...
# android
n
The funny thing is, the
toString()
method uses its own get() methods to generate the string:
Copy code
public String toString() {
      return "TestUser(login=" + this.getLogin() + ", id=" + this.getId() + ", avatarUrl=" + this.getAvatarUrl() + ... +  ")";
   }
and printing the
user.login
uses the same getter:
Copy code
public final void user() {
      User user = this.getMyApplication().getUser();
      System.out.println(user);
      String var2 = "login=" + user.getLogin();
      System.out.println(var2);
   }