#ifndef SHAPE_CPP
#define SHAPE_CPP

#include "Shape.h"
#include <iostream>

using namespace std;

Shape::Shape(){}

Shape::Shape(double x, double y):center_x(x), center_y(y){}

void Shape::setCenterX(double x) {center_x=x;}
void Shape::setCenterY(double y) {center_y=y;}
double Shape::getCenterX() const {return center_x;}
double Shape::getCenterY() const {return center_y;}

//double Shape::area() const {
//	cerr <<"area() called on an abstract shape. Aborting" <<endl;
//	exit(1);
//	}

bool Shape::empty() const {
	return area()==0;
	} 

void Shape::print() const {
	cout <<"("<< center_x <<","<< center_y <<")" <<endl;
	}


#endif
