chapter 14, templates, private and virtual inheritance