transform d03 ex01 assignation function in case of two constructors, tests of assignation and copy operation not successful
This commit is contained in:
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user