father and son
来源:互联网 发布:ugui 源码下载 编辑:程序博客网 时间:2024/05/14 11:37
#include <iostream>
using namespace std;
class badguy
{
public:
badguy()
{
cout<<"badguy::badguy()"<<endl;
}
};
class father
{
public:
father()
{
cout<<"father::father()/n";
//virfun();
}
/*virtual virfun()
{
cout << "father virtual fun()/n";
}*/
badguy g;
};
class son : public father
{
public:
son()
{
cout<<"son::son()/n";
}
badguy g;
/*virtual virfun()
{
cout << "son virtual fun()/n";
}*/
};
int main()
{
son* p = new son();
int stop;
cin>>stop;
return 0;
}
badguy::badguy()
father::father()
badguy::badguy()
son::son()
- father and son
- Race Condition between Father and Son
- son extends father and override father's variable
- Father和Son访问权限
- HDU4008 Parent and son
- about father and life
- hdu 4008 Parent and son
- hdu 4008 Parent and son
- hdu 4008 Parent and son
- hdu 4008 Parent and son
- HDU 4008 Parent and son
- SON
- Vampire Family and Horrible Father
- S.F. father, son seek justice for suspected robber, end up in jail
- 268. Like father, like son. 有其父,必有其子
- UVa10490 - Mr. Azad and his Son!!!!!
- 【树形DP】 HDU 4008 Parent and son
- UVa 10490 - Mr. Azad and his Son!!!!!
- Web开发人员必备的20款超赞的jQuery插件
- 谈谈C#文件监控对象FileSystemWatcher使用感受
- Java栈与堆
- PowerDesigner 反向工程生成ER图
- 如何隐藏input边框,使其不显示
- father and son
- KML
- POI 读写Excel 范例
- HTTP协议介绍
- script for sp2
- 图文并茂讲解在VM下如何使用ubuntu系统进行java的开发
- myeclipse building workspace如何禁止及提高myeclipse速度
- Python的方法定义
- BOSH (Bidirectional-streams Over Synchronous HTTP)