class A
{
public:
virtual int func()
{
cout << "hello"
}
}
class B: public A
{
public:
int func()
{
cout << "in class B";
}
}
int main()
{
B b;
A *a1=&b;
A &a2=b;
A a3;
A *a4=&a3;
cout << b.func() << a1->func() << a2.func() << a3.func() << a4->func();
}
My doubt in this call(a4->func()). what will take place early binding or late binding ??