Java's "public static final Object" in C++
<p>What would be the equivalent of this in C++ of the following snippet. I am in the process converting parts of an java application to C++.</p>

<p>Here is that java class snippet:</p>

<pre><code>
class container {
  Public static final Object CONTAINER_FULL = new Object {
     public boolean equals(Object other) {
        // ...
     }
     String toString() {
        // ...
     }
     // ...
  }
  // ...
}
</code></pre>

<p>The above class is wrapped in an java interface class "container".
The call is ...</p>

<pre><code>
public Object fetch_the_object(int at_pos) {
     if (at_pos == MAX) {
        return container.CONTAINER_FULL;
     } 
     // ...
}
</code></pre>

<p>What would be the closest equivalent in C++ of that static class and its call?</p>
