18 lines
291 B
C
18 lines
291 B
C
|
//
|
||
|
// Created by Marcus Vinícius de Carvalho
|
||
|
//
|
||
|
|
||
|
#ifndef TRIANGLE_H
|
||
|
#define TRIANGLE_H
|
||
|
|
||
|
#include "Polygon.h"
|
||
|
#include <string>
|
||
|
|
||
|
class Triangle final : public Polygon {
|
||
|
public:
|
||
|
Triangle(string name, float width, float height);
|
||
|
float calculateArea() override;
|
||
|
};
|
||
|
|
||
|
#endif //TRIANGLE_H
|