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