Mozilla interview question

Explain virtual functions in C++

Interview Answer

Anonymous

13 Dec 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