This commit is contained in:
Mylloon 2023-11-24 20:13:28 +01:00
parent 9239c100d5
commit b4efc5a245
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 3 additions and 3 deletions

View file

@ -10,8 +10,8 @@ class Piece {
std::string categorie;
public:
Piece(std::string categorie); // constructor
virtual ~Piece(); // destructor
Piece(const std::string categorie); // constructor
virtual ~Piece(); // destructor
Piece(const Piece &); // copy constructor
const Piece &operator=(const Piece &); // copy assignement

View file

@ -1,6 +1,6 @@
#include "../includes/Piece.hpp"
Piece::Piece(std::string cat) { std::cout << "pièce\n"; }
Piece::Piece(const std::string cat) { std::cout << "pièce - " << cat << "\n"; }
Piece::~Piece() {}