Chapter 7 - Factory Pattern

See the reference chart for terminology notes:

put in some dimensions separated by spaces or commas:
To see this is action on a triangle, click here array(3) { [0]=> string(1) "3" [1]=> string(1) "4" [2]=> string(1) "5" } Shape seems to be: triangle

Creating shape: triangle

the area is: 6

the perimeter is: 12

Toggle Sidebar