question about getting value from class
<p>consider  following code</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;
class MyClass{
  int a;
  public:
    MyClass(int j) {a = j;}
    int geta(void) {return a;}
};

int main(void)
{
  MyClass ob = 99;              

  cout &lt;&lt; ob.geta();
}
</code></pre>

<p>output of this code is 99
my question is following   statement   MyClass ob    is declare object  of class  MyClass and  is  allowed such kind of declaration that object is equal some number?maybe more specific declaration would be MyClass ob(99)  what do you think?</p>
