this.message = message; setChanged( ); notifyObservers( message );
return message;
MessageBoard board = new MessageBoard( ); Student bob = new Student( ); Student joe = new Student( ); board.addObserver( bob ); board.addObserver( joe ); board.changeMessage("More Homework!");