d03 ex01 inheritence ok, avec ref a parent constructor

This commit is contained in:
Hugo LAMY
2022-02-18 13:22:58 +01:00
parent 8cbff6a7c5
commit 787336b06d
5 changed files with 98 additions and 77 deletions

View File

@@ -29,16 +29,18 @@ public:
protected:
std::string _name;
std::string _class;
int _hit;
int _energy;
int _attack;
int _number;
void _getNumber();
int _getNumber();
void _increaseNumber();
private:
static int _number;
static int _totalNumber;
};