the book "Effective C++" have a item introduce cosnt,but a question i dont understand clearly.
class GamePlayer {
private:
static const int NUM_TURNS = 5; // constant eclaration
int scores[NUM_TURNS]; // use of constant
...
};
const int GamePlayer::NUM_TURNS; // mandatory definition;
// goes in class impl.file
why must define the NUM_TRUNS in static ?