//File:	Shape_driver1.cpp
#include <iostream>
#include <string>
#include "Shape1.h"
#include "Rectangle1.h"
#include "Circle1.h"
using namespace std;

int main()
{
	Shape * s[3]; //Array of Shapes
		
	Shape sh;
	Circle c(0.0, 0.0, 1.0, "MyCircle");
	Rectangle r(0.0, 1.0, 1.0, 0.0, "MyRectangle");

	s[0] = & sh;
	s[1] = & c;
	s[2] = & r;
		
	cout << s[0] -> area() << endl;
	cout << s[0] -> name() << endl;

	cout << s[1] -> area() << endl;
	cout << s[1] -> name() << endl;

	cout << s[2] -> area() << endl;
	cout << s[2] -> name() << endl;

	return 0;
}
