Lecture 14: Command Dispatching
September 24, 2012Ambient temperature: 73.2oF Concepts Dr. Wong is in a food coma from BBs Cafe, probably because today is his birthday. Never do ball.get_update_strategy().update();. That is an encapsulation violation! Instead, use ball.update_state(), and inside update_state(), the ball itself may ask its update strategy to update(). Or, the ball may implement its updating in an entirely different […]