Skip to content

Commit

Permalink
Update Rectangle.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
paulaLes authored Jun 7, 2024
1 parent 9fa8371 commit a4d88e5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions shapes/Rectangle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

#include "Shape.hpp"

class Rectangle : public Shape {
class Rectangle : public Shape
{
public:
Rectangle() = delete;
Rectangle(double x, double y);
Rectangle(const Rectangle& other);
Rectangle(const Rectangle & other) = default;

double getArea() const;
double getPerimeter() const;
double getX() const;
double getArea() const noexcept override;
double getPerimeter() const override;
virtual double getX() const final;
double getY() const;
void print() const;
void print() const override;

private:
Rectangle();

double x_;
double y_;
};

0 comments on commit a4d88e5

Please sign in to comment.