Skip to content

ALL-CLAS0005 · examples

These examples come directly from ALL-CLAS0005. Read their source.

Given class Row: ..., class Record(Row): ..., and class Report(Record): ..., Record measures 1 and Report measures 2. Row declares no base at all, so it has no inheritance link and is not measured rather than measuring zero. A class Both(Record, Row) still measures 2, because Row is one ancestor whichever path reaches it, and it is counted at the link to Record alone.