6-3(1)
来源:互联网 发布:学python要电脑吗 编辑:程序博客网 时间:2024/06/13 02:45
#include <iostream>using namespace std;class Point{ public: Point(float a,float b):x(a),y(b){} ~Point(){cout<<"executing Point destructor"<<endl;} private: float x; float y;};class Circle:public Point{public:Circle(float a,float b,float r):Point(a,b),radius(r){}~Circle(){cout<<"executing Circle destructor"<<endl;}private:float radius;};int main(){ Point *p=new Circle(1,2,3); delete p; return 0;}
<img src="http://img.blog.csdn.net/20150616194931224?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvaV8zdW1tZXI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />
0 0
- 6-3(1)
- (6)21.2.3 1使用Executor
- (6)3n+1猜想 实现
- 第6周项目1(3)
- 1-->6--->3
- 6- 3 补1
- 6-3(3)
- 第6周项目1-深复制体验(3)
- C#编程基础 实验(6) (1-3)
- spring框架学习(1-2-3-4-5-6)
- 排序3和字符串1(6道)
- 6-3-1 小球下落
- p51 1、 3 、4、6
- init 0-6 (启动级别:init 0,1,2,3,4,5,6)
- init 0-6 (启动级别:init 0,1,2,3,4,5,6)
- init 0-6 (启动级别:init 0,1,2,3,4,5,6)
- init 0-6 (启动级别:init 0,1,2,3,4,5,6)
- 6-3(2)
- 跨进程使用startActivity来调用Activity的一些注意事项
- 我的Java开发学习之旅------>Java String对象作为参数传递的问题解惑
- 论文笔记:Faster R-CNN:Towards Real-Time Object Detection with Region Proposal Networks
- 时间戳运用例子
- 玩命牛的成长记录(二十二)——新宠
- 6-3(1)
- Bayes Net toolbox 的使用实例
- 第五章T9
- php框架的学习
- 微软100题(89)atoi实现
- Seajs提供简单、极致的模块化开发体验
- 第五章T10
- 关于TimePicker导致FC的问题解决方案
- js 图片的上传前预览上传的图片(兼容所有浏览器)