toString() in java

toString() in java

when i build my own toString() method in a class, it overrides the default toString() method.. i have an class named Pat and an object of Pat with name of A when i use system.out.println(A) is uses exactly the toString() method i programmed.. but when i use a method that returns an object of Pat, and use the toString() method its like the method ignores all the this's.. why is that? and how can i fix it? thank you very much sorry for the english ;\
 
למעלה