Embed presentation







Virtual functions allow functions of derived classes to be called through pointers or references to the base class. This is known as polymorphism. For polymorphism to work, classes must inherit from a single base class and virtual functions must be declared in the base class. Polymorphism occurs at either compile-time or runtime depending on when the function call is bound to a definition.






