class / object whats in the class car -> model class button [ int button1x; int button1y; w; h; ] int NUMBERS (int x, int y) Class MakerCar { int year; int milage; int tanksizeinml; int x; int y; float radiotuning; color paintJob; int doorCount; void draw() { rect(x,y,20,10); } boolean nearby() { CODE GOES HERE } } Car bamCar= X,Y; Car adamCar= X,Y; bamCar.draw(); bamCar.X=42; (like Bam's Car (change value of) bamCar's X) -------------------------------------- void setup() { size (400, 400); right = newButton(); } class Button float x; float y = 0; float w=50; float h=25; String text; DEFAULT //Button() { CONSTRUCTOR//x = 0; DEFAULT //} Button() {string t, int xp, int yp) { text = t; x = xp; y = yp; } Button quit = newButton("Quit", 25, 0); Button left = newButton("Left", 100, 200); Button right = newButton("Right", 200, 200); Button Center = newButton("Center", 150, 200); boolean isInBox( float mouseX, float mouseY, float buttonX, float buttonY, float buttonW, float buttonH) { return mx>=x && mx<=(x+w); && my>=y && my<=(y+h); } boolean isMouseInBox() { return isInBox(mouseX, mouseY); } if(quit.isMouseInBox(mouseX, mouseY)) { exit(); } else if (left.isMouseInBox(mouseX, mouseY)) { CODE }