Metrum / Square

Dependents:   Figury

Files at this revision

API Documentation at this revision

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