POB_2019/Figures/include/Rectangle.h

13 lines
258 B
C
Raw Normal View History

2019-05-13 20:54:13 +02:00
#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;
};