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

UML class diagram

As illustrated in the following UML class diagram, our Code Interpreter example consists of an interface and three classes. All of these four components will be described in the next section along with their implementation in Java:

UML class diagram Code Interpreter example

As illustrated, the MapIntToCharacters class implements the Expression interface.