While trying to understand the working principle of virtual functions,
I asked myself that why in this world do we need virtual functions at
the first place ?
Why do base class object needs to points to derived class object ?
I am a newbie and couldn't think of any legit reason. C++ guru please
enlighten me. I couldn't find the appropriate reason in C++ books.