Visitor Pattern example of calculating area of shape and cubing its dimensions
- In fact,
Shape
's methodaccept()
doesn't need to be pure virtual because Circle and Square use the exact same function - Instead, we can the destructor pure virtual so that the class is Abstract