Design Patterns, Behavioural Design, Java, Software Development.
Implement Concrete Visitor and Concrete Element Classes // ConcreteVisitor class class ConcreteVisitor implements Visitor { @Override public void visit(ConcreteElementA element) { System.out.println("Visitor is visiting ConcreteElementA"); } @Override public void visit(ConcreteElementB element) {