What is the output when the display method of an object created from
this class is called?
//=============================================================================
public class Beano {
//-----------------------------------------------------------------------------
private String name;
//-----------------------------------------------------------------------------
public Beano() {
this.name = "Beano";
}
//-----------------------------------------------------------------------------
public String toString() {
return(name);
}
//-----------------------------------------------------------------------------
public void display() {
System.out.println("I say " + this + " " + getClass().getName() +
" Beano");
}
//-----------------------------------------------------------------------------
}
//=============================================================================