Skip to content
Snippets Groups Projects
Select Git revision
  • 92566b15d6cd2cd73f3abc7b42dfb0303b16acd9
  • 2023 default protected
2 results

eb_hooks.py

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