Infogain Interview Question

Question : What is virtual functions and how they work.

Interview Answer

Anonymous

Nov 13, 2017

At looking at question, everyone think it is simple question, but twist is that they are not asking usual answer like we use virtual keyboard with method to make it virtual function and it calls at the runtime on class object reference priority. They asked for Virtual Table(Table which contains info about virtual methods), Virtual Pointer (Pointer to point the virtual methods from virtual table). Hopefully I know the answer