C/C++ Programmer's Guide (G06.25+)

Features and Keywords of Version 2 Native C++
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
E-6
Defining Virtual Function Tables
non-inline virtual member function. Duplicate virtual function tables are generated for
classes that define all virtual member functions within the class definition.
Example
class A {
virtual int foo (); // foo not defined within its class
}; // A's virtual function table will be defined within the
// module that contains the definition of A::foo.
class B{
virtual int foo() {return 1;}
}; // all of B's virtual functions are defined within
// B's definition, so each module that contains B also
// contains a definition for B's virtual function table.