Question: Write a C++ program that has a Polygon interface that has abstract functions, area(), and perimeter(). Implement classes for Triangle, and Rectangle which implement this
Write a C++ program that has a Polygon interface that has abstract functions, area(), and perimeter(). Implement classes for Triangle, and Rectangle which implement this interface, with the obvious meanings for the area() and perimeter() functions. Finally, write a simple user interface that allows users to create polygons of the various types, input their geometric dimensions, and then output their area and perimeter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
