24 lines
457 B
C++
24 lines
457 B
C++
//
|
|
// Created by ahypki on 28.03.23.
|
|
//
|
|
#include <iostream>
|
|
|
|
#ifndef TESTCPPPROGOBIE_FIGURE_H
|
|
#define TESTCPPPROGOBIE_FIGURE_H
|
|
|
|
namespace ahypki {
|
|
|
|
class Figure {
|
|
private:
|
|
std::string name = "Unknown figure";
|
|
public:
|
|
std::string getName();
|
|
void setName(std::string newName);
|
|
virtual double computeArea();
|
|
virtual double pureVirtualComputeArea() = 0;
|
|
};
|
|
|
|
} // ahypki
|
|
|
|
#endif //TESTCPPPROGOBIE_FIGURE_H
|