AMD interview question

Explain how virtual functions work in C++.

Interview Answer

Anonymous

31 Aug 2012

virtual function declaration helps the compiler to do late binding of func call and its body which help to have overwriting of func which is following the principal of polymorphism virtual func helps to call the func of base class in derived class with different body..