n/a
Diff: Rectangle.cpp
- Revision:
- 0:f3642f9dd5f6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Rectangle.cpp Tue Mar 22 09:30:09 2016 +0000 @@ -0,0 +1,15 @@ +#include "Rectangle.h" +#include "mbed.h" +#include "Shape.h" +#include <string> + +Rectangle::Rectangle(float width, float height) +{ + this->width = width; + this->height = height; +} + +float Rectangle::getArea() +{ + return width * height; +} \ No newline at end of file