I am new to C++. I have a class like this:
class CodeTest { private: static const int TOTAL=100; };
Is TOTAL a dec
TOTAL
First part of the question:
This line: static const int TOTAL=100; is a declaration followed by an initialisation.
static const int TOTAL=100;
TOTAL is an identifier.
Second part of the question
const int CodeTest::TOTAL is required to initialize the variable.
const int CodeTest::TOTAL