summaryrefslogtreecommitdiffstats
path: root/doc/sources/c++/polygon.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sources/c++/polygon.hpp')
-rw-r--r--doc/sources/c++/polygon.hpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/doc/sources/c++/polygon.hpp b/doc/sources/c++/polygon.hpp
deleted file mode 100644
index e3189bf..0000000
--- a/doc/sources/c++/polygon.hpp
+++ /dev/null
@@ -1,25 +0,0 @@
-#ifndef POLYGON_HPP
-#define POLYGON_HPP
-
-class polygon
-{
- protected:
- double side_length_;
-
- public:
- polygon() : side_length_(0)
- {}
-
- void set_side_length(double side_length)
- {
- side_length_ = side_length;
- }
-
- virtual double area() const = 0;
-};
-
-// the types of the class factories
-typedef polygon* create_t();
-typedef void destroy_t(polygon*);
-
-#endif