//
// 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 * f1 = new Figure( );

	std::cout << "\nHere is the information about each figure:\n";
	c1->Output_Info();
	r1->Output_Info();
	s1->Output_Info();
	f1->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()
			<< "\nFigure 1\t" << f1->Area() << std::endl;
}
      
      

