Notes on effective

From Yefu's notes
Jump to: navigation, search

static const int as a class member does not need a definition

class GamePlayer {
private:
static const int NumTurns = 5; // constant declaration
int scores[NumTurns]; // use of constant
...
};

It has to be static, const, int (or enum, bool)