Thursday, March 31, 2011

Payed by the number of coded lines?

switch (userChoice) {
case 1:
  ((VO) vo).setAne(new Integer(1));
  break;
case 2:
  ((VO) vo).setAne(new Integer(2));
  break;
case 3:
  ((VO) vo).setAne(new Integer(3));
  break;
default:
  break;
}

Tuesday, March 29, 2011

Abstract methods? what is that?

protected void initialize() {
    // do nothing here, it will be overridden in the subclasses
}