Re:The visitor pattern is essentially the same thing as Chur...
by _old_dude_ on Thursday February 04, 2021 @09:03AM
(#26025371)
You can keep the Circle and Rectangle as class (record here) and only see them as Shape when you want to do the double dispatch of the visitor.
[ Parent
| on HN ]
There are no comments on this comment yet.