Pergunta de entrevista da empresa Arm

What is virtual function

Resposta da entrevista

Sigiloso

31 de jan. de 2017

A virtual function is a member function that you expect to be redefined in derived classes. When you refer to a derived class object using a pointer or a reference to the base class, you can call a virtual function for that object and execute the derived class's version of the function.