摘要:
1:调用基类方法#include<iostream> using namespace std; class Mammal
{ public: void Move() const {cout<<"move one step"<<endl;} void Move(int distance)//加cosnt和不加的区别 { cout<<"move"<<distance<<"step"<<endl; } protected: int itsAge; int i 阅读全文
posted @ 2011-11-12 20:30
foreverlearn
阅读(123)
评论(0)
推荐(0)
浙公网安备 33010602011771号