Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 1:f72e3e1af03d, committed 2016-03-22
- Comitter:
- kch78
- Date:
- Tue Mar 22 10:18:36 2016 +0000
- Parent:
- 0:202298a7e6bc
- Commit message:
- poprawka
Changed in this revision
| Square.cpp | Show annotated file Show diff for this revision Revisions of this file |
| Square.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Square.cpp Tue Mar 22 09:30:17 2016 +0000
+++ b/Square.cpp Tue Mar 22 10:18:36 2016 +0000
@@ -5,11 +5,4 @@
Square::Square(float size) : Rectangle(size, size)
{
- this->width = size;
- this->height = size;
}
-
-float Square::getArea()
-{
- return width * height;
-}
\ No newline at end of file
--- a/Square.h Tue Mar 22 09:30:17 2016 +0000
+++ b/Square.h Tue Mar 22 10:18:36 2016 +0000
@@ -7,8 +7,7 @@
class Square : public Rectangle
{
public:
- Square(float size);
- float getArea();
+ Square(float size);
};
#endif
\ No newline at end of file