![Hands-On Design Patterns with Java](https://wfqqreader-1252317822.image.myqcloud.com/cover/688/36698688/b_36698688.jpg)
上QQ阅读APP看书,第一时间看更新
UML class diagram
Core to the control box example is a ControlBox Java class. The UML class diagram illustrated next shows four attributes—SLIDER_MIN, SLIDER_MAX, poweredOn, and sliderValue; the first two are capitalized to denote their final status:
![](https://epubservercos.yuewen.com/A2D5A8/19470379708814006/epubprivate/OEBPS/Images/13f0b245-64c4-4d07-ae46-892ceacc4672.png?sign=1739223745-lWa2A0IiFIS4MA3qk0J56vBlowNm2lsY-0-ff436d4dc42e955ef5a516edb7ffd746)
UML class diagram —ControlBox example
The UML class diagram also shows six behaviors that are the ControlBox class methods. Those are shown in Java code in the next section.