/***************
功能:为了验证C++中父类与子类的赋值,引用,取地址。
****************/
#include <iostream>
using namespace std;
class Parent//父类
{
private:
int a;
public:
Parent(int _a):a(_a)
{
cout<<"Pareant的有参构造函数"<<endl;
Parent_show();
}
Parent()
{
cout<<"Pareant的无参构造函数"<<endl;
}
void Parent_show()
{
cout<<"parent value = "<<a<<endl;
}
void same_fun()
{
cout<<"same_fun() -parent " ;
Parent_show();
}
};
class Son:public Parent
{
<