n/a

Dependents:   Figury

Committer:
kch78
Date:
Tue Mar 22 09:30:09 2016 +0000
Revision:
0:f3642f9dd5f6
1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kch78 0:f3642f9dd5f6 1 #include "Rectangle.h"
kch78 0:f3642f9dd5f6 2 #include "mbed.h"
kch78 0:f3642f9dd5f6 3 #include "Shape.h"
kch78 0:f3642f9dd5f6 4 #include <string>
kch78 0:f3642f9dd5f6 5
kch78 0:f3642f9dd5f6 6 Rectangle::Rectangle(float width, float height)
kch78 0:f3642f9dd5f6 7 {
kch78 0:f3642f9dd5f6 8 this->width = width;
kch78 0:f3642f9dd5f6 9 this->height = height;
kch78 0:f3642f9dd5f6 10 }
kch78 0:f3642f9dd5f6 11
kch78 0:f3642f9dd5f6 12 float Rectangle::getArea()
kch78 0:f3642f9dd5f6 13 {
kch78 0:f3642f9dd5f6 14 return width * height;
kch78 0:f3642f9dd5f6 15 }