Design Patterns, Behavioural Design, Java, Software Development.
interface. Each visit method implements a specific operation on an element of the object structure. Element: Defines an interface for accepting visitor objects and declares an accept method that takes a Visitor as an argument. ConcreteElement: Implements the accept method defined in the Element