This repository is used for teaching purposes at the University of Mons. It contains Java code for computing arithmetic expressions. The code uses design patterns and is accompanied with JavaDoc, unit tests and BDD scenarios. We have also paid particular attention to code quality.
Issue
You did not fix the problem that the counting methods (countOps, countNbs, countDepth) are still part of the Expression class hierarchy. Ideally, these would also need to be moved into a Visitor design pattern. (Each type of counting would correspond to a separate visitor.)
Issue You did not fix the problem that the counting methods (countOps, countNbs, countDepth) are still part of the Expression class hierarchy. Ideally, these would also need to be moved into a Visitor design pattern. (Each type of counting would correspond to a separate visitor.)
Classification suggested code refactoring