Skip to content
Snippets Groups Projects
Select Git revision
  • e223895ac8a3535960273f6582e17f7628875021
  • master default protected
  • v_230512
3 results

Shape.hh

Blame
  • Shape.hh 360 B
    #ifndef Shape_HH
    #define Shape_HH
    
    #include "Point.hh"
    #include <string>
    
    class Shape {
    public:
        virtual ~Shape() = default;
        virtual void rotate(double) = 0;
        virtual void translate(Point) = 0;
        virtual auto area() const -> double = 0;
        virtual auto perimeter() const -> double = 0;
        virtual auto name() const -> std::string = 0;
    };
    
    #endif