You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Visitor Pattern C++ example is missing accept() method implementations #220
The C++ Visitor Pattern example declares the accept() methods in the Circle and Rectangle classes, but their implementations are missing.
Currently, both classes only contain:
voidaccept(ShapeVisitor* visitor) override;
This is only a method declaration. It does not automatically call visitCircle() or visitRectangle().
The methods should either be implemented directly inside their respective classes or defined outside the classes after the complete ShapeVisitor definition.
Activity