摘要: 子类与父类的构造函数2008-11-07 18:13:17|分类: c/c++ |标签: |字号大中小订阅先看下面的例子: #include <iostream.h> class animal { public: animal(int height, int weight) { cout<<"animal construct"<<endl; } ~animal() { cout<<"animal destruct"<<endl; } void eat() { cout<<" 阅读全文
posted @ 2012-08-15 09:05 l851654152 阅读(6443) 评论(1) 推荐(0) 编辑