POB_2019/Figures/include/Rectangle.h
2019-05-13 20:54:13 +02:00

13 lines
258 B
C++

#pragma once
#include "Figure.h"
#include <string>
class Rectangle : public Figure {
public:
float w,h;
Rectangle();
Rectangle(float _w, float _h);
virtual std::string type() const;
virtual float area() const;
};