Explain how virtual functions work in C++.
Anonimo
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..