Method toString()
// Yield a string containing the data for // that person
public String toString(){ return name + “ ” + salary + “ ” + hiredate;}
Actually, every class implements method toString
Note: in <string> + B, if B is not a string, B.toString is used to convert it.