In the code below is the line static const int maximum = 42 in the Fred.h file not sufficient as a definition for the static member given that we initialize it with a value? Why do we need the const int Fred::maximum line in Fred.cpp.
//Fred.h
class Fred {
public:
static const int maximum = 42;
...
};
// Fred.cpp
#include "Fred.h"
const int Fred::maximum
;