Calling Base Class Contructors in C++
<p>Is this a legal way of calling a base class constructor.</p>

<p>The Base Class is as follows</p>

<pre><code>class base_class
{
    public:
    base_class(int x, int y);    
    protected:
    int a;
    int b;
};

base_class::base_class(int x,int y)
{
    a=x;
    b=y;
}
</code></pre>

<p>The Derived class is a follows</p>

<pre><code>class derived_class: public base_class
{
    public:
    derived_class(int x,int y,int z);
    protected:
    int c;
};
derived_class:: derived_class(int x,int y,int z):base_class(x,y)  /*Edited and included the scope resolution operator*/
{
    c=z;
}
</code></pre>

<p>Is this way of defining a derived class constructor legal in C++, if yes how is the base class constructor called??</p>
