|
//
|
|
// Created by Marcus Vinícius de Carvalho
|
|
//
|
|
|
|
#include "Rectangle.h"
|
|
|
|
Rectangle::Rectangle(string name, const float width, const float height)
|
|
: Polygon(std::move(name), width, height) {
|
|
polytype = POLY_RECT;
|
|
}
|
|
|
|
float Rectangle::calculateArea() {
|
|
return width * height;
|
|
} |