Virtual member functions (C++ only)

Virtual member functions are declared with the keyword virtual. They allow dynamic binding of member functions. Because all virtual functions must be member functions, virtual member functions are simply called virtual functions.

If the definition of a virtual function is replaced by a pure specifier in the declaration of the function, the function is said to be declared pure. A class that has at least one pure virtual function is called an abstract class.

Related information



[ Top of Page | Previous Page | Next Page | Contents | Index ]