diff options
fixed poly
1 files changed, 0 insertions, 19 deletions
| -rw-r--r-- | Polymorphism/Circle.cpp | 19 |
diff --git a/Polymorphism/Circle.cpp b/Polymorphism/Circle.cpp deleted file mode 100644 index 6ba083f..0000000 --- a/Polymorphism/Circle.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include "Circle.h"
-
-Circle::Circle(int x, int y, int r) : Shape(1), radius(r)
-{
- setPoint(x, y, 0);
-}
-double Circle::getArea()
-{
- return PI * radius * radius;
-}
-double Circle::getPer()
-{
- return 2 * PI * radius;
-}
-Shape* Circle::clone()
-{
- Circle* newCircle = new Circle(*this);
- return newCircle;
-}
\ No newline at end of file |
