parent *p= new child(); p->parent::show();//覆盖 cout<<"/n"; p->show();//virtual
1 关于构造函数
no appropriate default constructor available
因为派生类对象构造的时候必须首先构造基类。