NTU-OOP-Tuts-2024-Cpp/T8Q2_2/Triangle.h

18 lines
291 B
C
Raw Normal View History

2024-10-30 07:36:34 +08:00
//
// 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