public boolean equals(Object rhs) { return ((rhs instanceof Sphere) && (theRadius == ((Sphere)rhs).theRadius)); } // end equals