class Shape { // Incomplete protected double x = 0.0; protected double y = 0.0; protected double width = 0.0; protected double height = 0.0; public synchronized double getX() { return x;} public synchronized double getY() { return y; } public synchronized double getWidth() { return width;} public synchronized double getHeight() { return height; } public synchronized void adjustLocation() { x = longCalculation1(); y = longCalculation2(); } public synchronized void adjustDimensions() { width = longCalculation3(); height = longCalculation4(); } // ... }