7 virtual int access() { return this->value
; }
12 virtual int access() { return this->value
; }
14 struct C
: public A
, public B
{
15 C():better_value(789) {}
17 virtual int access() { return this->better_value
; }
20 D():other_value(987) {}
22 virtual int access() { return this->other_value
; }
33 assert(use(&c
) == 789);
35 assert(use(&d
) == 987);