class Y{ protected int yVar = 2000; public String toString(){ return "toString in class Y, yVar = " + yVar; }//end overridden toString }//end class Y