prog-obiektowe/cpp/Square.h

27 lines
465 B
C++

//
// Created by ahypki on 28.03.23.
//
#include "Figure.h"
#ifndef TESTCPPPROGOBIE_SQUARE_H
#define TESTCPPPROGOBIE_SQUARE_H
namespace ahypki {
class Square : public Figure {
private:
double x;
public:
Square();
Square(double x);
void setX(double x);
double getX();
virtual double computeArea();
virtual double pureVirtualComputeArea();
};
} // ahypki
#endif //TESTCPPPROGOBIE_SQUARE_H