n/a

Dependents:   Figury

Revision:
0:18f22caa11d8
diff -r 000000000000 -r 18f22caa11d8 Circle.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Circle.cpp	Tue Mar 22 09:30:01 2016 +0000
@@ -0,0 +1,14 @@
+#include "Circle.h"
+#include "Shape.h"
+#include "mbed.h"
+#include <string>
+
+Circle::Circle(float radius)
+{       
+    this->width = this->height = radius * 2.0;
+}
+
+float Circle::getArea()
+{
+    return width * width * 3.14159265 / 4.0;   
+}
\ No newline at end of file