Protected Inheritance in C++
This question already has an answer here:
With protected
inheritance inherited public
members become protected
.
With private
inheritance inherited public
and protected
members become private
.
上一篇: 为什么子类管理访问c ++私有继承成员?
下一篇: C ++中的受保护继承