Member function invocation through object : <p>I just to understand the logic behind this code. When member function is not part of the object then how does the compiler invokes the function. Somehow the compiler needs to know the address of the function to invoke. Where it gets the address of the right function.I know this is silly question but curious to understand the underlying truth behind this</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

class Base {
public:
    Base() {
        cout &lt;&lt; "Base class constructor\n";
    }
    void Fun()
    {
        cout &lt;&lt; sizeof(this) &lt;&lt; endl;
        cout &lt;&lt; "This is member function" ;
    }

    void Fun1()
    {
        cout &lt;&lt; "This is second member fun" &lt;&lt; endl;
    }
    int Val;
};

int main(int argc, char* argv[])
{
   Base Obj;
   cout &lt;&lt; sizeof(Obj) &lt;&lt; endl;
   Obj.Fun();
    return 0;

}
</code></pre>
