上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:
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.