d03 ex01 inheritence ok, avec ref a parent constructor
This commit is contained in:
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user