const
This commit is contained in:
parent
9239c100d5
commit
b4efc5a245
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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() {}
|
||||
|
||||
|
|
Reference in a new issue