Rectangle


Square


AddConstant

{
  AddConstant a = new AddConstant(5);
  int x;
  x = a.addTo(7); // gives x=12
  x = a.addTo(80); // gives x=85
  a.setConstant(3); // now does +3 
  x = a.addTo(7); // gives x=10
}

RainbowBug

Instance variables?