立信从兴笔试题c++

时间:2018-12-31 12:00:00 资料大全 我要投稿

立信从兴笔试题c++

求输出的结果
#include <iostream>
using namespace std;
class Base
{
public:
    void func(const char* str){cout << "Base: " << str << endl;}
virtual void func(int num){cout << "Base: " << num << endl;}
};
class Derived : public Base
{
public:
    void func(const char* str){cout << "Derived: " << str << endl;}
void func(int num){cout << "Derived: " << num << endl;}
void func(){cout << "The Function is in Derived!" << endl;}
};
int main()
{
  Base *pB;
Derived ObjD;
pB = &ObjD;
pB->func(11);
pB->func("Hello");
// pB->func();
getchar();
return 0;
}

立信从兴笔试题c++

【立信从兴笔试题c++】相关文章:

1.立信从兴电子笔试题

2.爱立信从兴c++笔试题

3.名企招聘考试题汇总立信从兴电子考题

4.C++笔试题

5.网易C++笔试题

6.联想C++笔试题

7.普天C++笔试题

8.C/C++笔试题