Skip to content

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

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages