n/a
Circle.h@0:18f22caa11d8, 2016-03-22 (annotated)
- Committer:
- kch78
- Date:
- Tue Mar 22 09:30:01 2016 +0000
- Revision:
- 0:18f22caa11d8
1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kch78 | 0:18f22caa11d8 | 1 | #ifndef MBED_CIRCLE_H |
kch78 | 0:18f22caa11d8 | 2 | #define MBED_CIRCLE_H |
kch78 | 0:18f22caa11d8 | 3 | #include "mbed.h" |
kch78 | 0:18f22caa11d8 | 4 | #include "Shape.h" |
kch78 | 0:18f22caa11d8 | 5 | #include <string> |
kch78 | 0:18f22caa11d8 | 6 | |
kch78 | 0:18f22caa11d8 | 7 | class Circle : public Shape |
kch78 | 0:18f22caa11d8 | 8 | { |
kch78 | 0:18f22caa11d8 | 9 | public: |
kch78 | 0:18f22caa11d8 | 10 | Circle(float radius); |
kch78 | 0:18f22caa11d8 | 11 | float getArea(); |
kch78 | 0:18f22caa11d8 | 12 | }; |
kch78 | 0:18f22caa11d8 | 13 | |
kch78 | 0:18f22caa11d8 | 14 | #endif |