Private static variables to establish invariants
<p>Is it reasonable to use private static variables to establish invariants in your class?</p>

<p>Ex:</p>

<pre><code>class MovingObject
{
public:
    //...Stuff
private:
    // Invariants
    static const double VELOCITY; // Moving objects always move at this velocity
    // etc. for any other invariants
    //...
}
---------------------------------------------------------------------------------
#include "MovingObject.h"
// Invariants
const double MovingObject::VELOCITY = 256.5;
//etc.
</code></pre>
