Figure 3 Output from Listing 1

B::f()
B::g()
B::f()
D::g()