但是protected继承时,基类的public和protected可能继承到了派生类的private下啊,这种情况没有证明,不严谨
2016-02-25
基类的指针指向派生类的对象:Person *pPerson = &soldier; (soldier is a person)
用派生类来初始化基类:Person person = soldier; (soldier is a person)
用派生类来初始化基类:Person person = soldier; (soldier is a person)
2016-02-06