Thanks friends for answers.
I don't want to solve special problem , i only want to understand what compiler writes to exe when virtual function callls.I think, i confused a lot so i can not define my problem well.I will give you one example then ask my question.
Code:
class B {
public:
virtual void vmf() { }
};
class D : public B {
public:
virtual void vmf() { }
};
//here i will write a function
void func(B * b)
{
b->vmf()
};
Ok. Here if user enter func. parameter instance of class b then calling b->vmf() but user enter instance of class D then d->vmf() is executed.So here what does compiler writes to exe so this can be achieving.I mean what is written in func. parameter so if user enter instance of class D to func. parameter then d->vmf() is executed.Please explain this part.
I am asking about basics of virtual function calling mechanism not special problem.
Thanks again.