//
// A very simple main program to test the figure class hierarcy.
//
 
#include <iostream>
#include "figure.h"
 
void
main( )
{
	Figure * c1 = new Circle(2.0);
	Figure * r1 = new Rectangle( 3.5, 8 );
	Figure * s1 = new Square( 1.41421356f );
	Figure * cyl1 = new Cylinder( 2, 10.0 );

	std::cout << "\nHere is the information about each figure:\n";
	c1->Output_Info();
	r1->Output_Info();
	s1->Output_Info();
	cyl1->Output_Info();

	std::cout << "\nHere are all the areas:\n"
			<< "Circle 1\t" << c1->Area()
			<< "\nRectangle 1\t" << r1->Area()
			<< "\nSquare 1\t" << s1->Area() 
			<< "\nCylinder 1\t" << cyl1->Area()<< std::endl;
	std::cout << "\nHere are all the volumes:\n"
			<< "Circle 1\t" << c1->Volume()
			<< "\nRectangle 1\t" << r1->Volume()
			<< "\nSquare 1\t" << s1->Volume() 
			<< "\nCylinder 1\t" << cyl1->Volume()<< std::endl;
}
      
      

