Class Participation Exercise 11
Class Participation Exercise 11
Apply the composite design pattern to:
- model the structural representation of binary logical expressions involving the binary operators and and or, and boolean literals true and false; and
- support the uniform, recursive evaluation of such expressions
Draw the UML class diagram for the object-oriented design, applying the design pattern. Include suitable classes, relationships, attributes, and methods.