.
.
.
.
.
.
A class is dynamic if, and only if, one of the following conditions holds:
-
it has a virtual method
-
it has a direct virtual base
-
it has a direct dynamic base
This definition is common to both algorithms studied in POPL 2011, Section 6. Moreover, it is formalized in the C++ Standard (since 1999) as "to have a polymorphic behaviour".
However, it plays no role in the correctness of conditions stated in Section 4 and proved in Section 5.
.
Proof.
.
Proof.
.
Proof.
.