|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Visual Studio .NET 2003
The virtual keyword declares a virtual function or a virtual base class.
virtual member-function-declarator virtual [access-specifier] base-class-name
The elements of a virtual declaration are as follows:
- Declares a member function.
- Defines the level of access to the base class. Can appear before or after the virtual keyword.
- Identifies a previously declared class type.