Skip to content

Visitor Pattern example of calculating area of shape and cubing its dimensions

Notifications You must be signed in to change notification settings

TimothyW553/VisitorPattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VisitorPattern

Visitor Pattern example of calculating area of shape and cubing its dimensions

Screenshot 2022-12-15 at 5 30 51 PM

  • In fact, Shape's method accept() 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

About

Visitor Pattern example of calculating area of shape and cubing its dimensions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages