Mozilla Interview Question

Explain virtual functions in C++

Interview Answer

Anonymous

Dec 13, 2014

Virtual functions are used by base classes to allow derived classes to override those particular function. This is fundamental to the principle of polymorphism in C++.

1