#ifndef RECTANGLE_CPP
#define RECTANGLE_CPP

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

using namespace std;

Rectangle::Rectangle(){}

Rectangle::Rectangle(double x, double y, double w, double h):Shape(x,y), width(w), height(h){}

void Rectangle::setWidth(double w){width=w;}
void Rectangle::setHeight(double h){height=h;}
double Rectangle::getWidth() const {return width;}
double Rectangle::getHeight() const {return height;}

double Rectangle::area() const {
	return width*height;
	}

void Rectangle::print() const {
	cout << width <<"x" <<height <<"rectangle at";
	Shape::print();
	}

#endif
