您的位置:首页 > 移动开发

Lync 2013 移动端功能支持列表

2013-12-18 11:55 169 查看
/*
* 函数覆盖:子类覆盖父类的返回值、函数名、函数参数均相同的方法。
*/
#include <iostream>
using namespace std;

typedef int Type;

class Bird
{
public:
Type weight;
Bird()
{
weight = 0;
}
void fly() /* this function will be covered and will never be called in this program */
{
cout << "a bird can fly..." << endl;
}
};

class Ostrich : public Bird
{
public:
void fly()
{
cout << "a ostrich is not able to fly..." << endl;
}
};

int main(void)
{
Ostrich os;
os.fly();
return 0;
}本文出自 “SELECT” 博客,请务必保留此出处http://programs.blog.51cto.com/785537/236027
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: