由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] protected inheritance in C++
相关主题
C++ Primer 上关于inheritance protected member 的一段话C++ virtual function 定义在 derived class 会怎么样?
请问C++小白问题两个看来相似的问题
关于 VC++ vitual, reload 和 derive的一个问题...protected class member in C++
C++ private inheritance. v.s. compositionC++ Q96: function inheritance (转载)
How to understand the answer.Why oop is bad?
什么地方用到 Private inheritance一个inheritance 的问题
请教一个class design的问题问一个inheritance的初级问题
问一个volatile和memcpy一起用的问题c++ question, thanks
相关话题的讨论汇总
话题: base话题: derived话题: c++话题: protected
进入Programming版参与讨论
1 (共1页)
b***y
发帖数: 2799
1
☆─────────────────────────────────────☆
gebitan (job, job) 于 (Thu Sep 1 15:09:50 2005) 提到:
class Base{};
class Derived: protected Base {};
Base* bp = new Derived;
when complied, it shows "can't use derived* to initiliaze base*", but if I use
public inheritance, everything is fine.
☆─────────────────────────────────────☆
cdr (可读可写) 于 (Thu Sep 1 15:38:09 2005) 提到:
"Consider a class D derived from a base clas B, ....
If B is a protected base,....
Only friends and members of D and frien
1 (共1页)
进入Programming版参与讨论
相关主题
c++ question, thanksHow to understand the answer.
C++ (with MATLAB engine) compiling problem under Linux systerm什么地方用到 Private inheritance
ask a C++ inheritance question请教一个class design的问题
关于c++ classes的interview test问一个volatile和memcpy一起用的问题
C++ Primer 上关于inheritance protected member 的一段话C++ virtual function 定义在 derived class 会怎么样?
请问C++小白问题两个看来相似的问题
关于 VC++ vitual, reload 和 derive的一个问题...protected class member in C++
C++ private inheritance. v.s. compositionC++ Q96: function inheritance (转载)
相关话题的讨论汇总
话题: base话题: derived话题: c++话题: protected