transform d03 ex01 assignation function in case of two constructors, tests of assignation and copy operation not successful

This commit is contained in:
Hugo LAMY
2022-02-19 12:01:43 +01:00
parent 817fac957b
commit 7e65467a27
10 changed files with 104 additions and 23 deletions

View File

@@ -21,26 +21,27 @@ public:
void beRepaired(unsigned int amount);
std::string getName() const;
std::string getClass() const;
int getHit() const;
int getEnergy() const;
int getAttack() const;
int getNumber() const;
protected:
std::string const _name;
std::string _name;
std::string _class;
int _hit;
int _energy;
int _attack;
int _number;
int _getNumber();
void _increaseNumber();
private:
ClapTrap( void ); // default/parametric constructor
private:
static int _totalNumber;
};