The method is only ment to change the attribute value and does not have to call any other methods such as Draw().
class Rechteck {
int xPosition;
int yPosition;
int breite;
int hoehe;
String farbe;
void verschiebeWaagerecht(int xPosition){
//The method that is ment to change the position of the rectangle.
}
}