consts inside classes?
<p>Hi I was trying to define a constant inside a class, doing it the normal or usual way doesnt seem to work</p>

<pre><code>class cat
{
public:

    cat();
    ~cat();


private:

    static const int MAX_VALUE = -99999;
    int Number;


public:

    void OrganizeNumbers();
    void SetNumbers();

};
</code></pre>

<p>So the solution I found after doing some research was to declare it as <code>static</code> but what does this means and also I want to ask it is really necesary to declare a constant, becuase as you can see it is private right? i means it can only be accessed by the class methods so why to set a constant and also I read that using <code>static</code> only allows you to use integral type so its actually a dissavantage... if you are thinking to make a game.</p>
