Skip to main content

Posts

Showing posts from November 3, 2019

override specifier (since C++11)

Specifies that a   virtual function   overrides another virtual function. Syntax The identifier   override , if used, appears immediately after the   declarator   in the syntax of a member function declaration or a member function definition inside a class definition. declarator   virt-specifier-seq (optional)   pure-specifier (optional) (1) declarator   virt-specifier-seq (optional)   function-body (2) 1)   In a member function declaration,   override   may appear in   virt-specifier-seq   immediately after the declarator, and before the   pure-specifier , if used. 2)   In a member function definition inside a class definition,   override   may appear in   virt-specifier-seq   immediately after the declarator and just before   function-body . In both cases,   virt-specifier-seq , if used, is either   override   or   final , or   final overr...