Hands-On Design Patterns with Java
上QQ阅读APP看书,第一时间看更新

Programming the design pattern

In order to implement our control box example, we need to create a ControlBox class based on the UML diagram in the previous section. The class is presented in the following sections:

  • Class variables
  • Constructor
  • Accessor methods
  • Power-related methods
  • Slider-related methods