abstract class Widget {
// Attributes
float x, y; // location
float s; // Size

// Constructor(s)
Widget(float x, float y, float s) {
this.x = x;
this.y = y;
this.s = s;
} // Widget()

// Methods
void jiggle() {
x = x + random(-1, 1);
y = y + random(-1, 1);
} // jiggle()

abstract void display(); // All subclasses will have to define this

// Print method
String toString() {
return "Widget of size: " + s + " at <" + x + "," + y;
} // toString()

} // class Widget