protected inheritance

前端 未结 4 1447
眼角桃花
眼角桃花 2021-01-11 19:30

Why protected and private inheritance are defined and proposed? I understand some cases private inheritance could be used but it is not recommended. How about protected inhe

4条回答
  •  再見小時候
    2021-01-11 20:20

    See Herb Sutter's Uses and Abuses of Inheritance, Part 1, which is also in his More Exceptional C++ book.

提交回复
热议问题