Pure virtual function definition outside derived class
<p>I have abstract base class and derived class in header file. Is it possible to have definition of pure virtual function outside the derived class?</p>

<p>For example:</p>

<pre><code>//file .h
class Baseclass
{
public:
    virtual int vfunc() = o;
   //assume Ctor and Dctor
};
class Derivedclass : public Baseclass
{
public:
    int vfunc();
    //assume Ctor and Dctor
};
</code></pre>

<p>Now in the cpp file:</p>

<pre><code>#include &lt;file.h&gt;
int Derivedclass :: vfunc()
{
    // Body of the function
}
</code></pre>

<p>Is the above method correct/possible? </p>
