2018华为daniuchang一面
#include <iostream>
using namespace std;
class A{
public:
virtual void func(int a = 0){
cout << a << endl;
}
};
class B : public A{
public:
virtual void func(int b = 1){
cout << b << endl;
}
};
void main(){
A* a = new B();
a->func(); 0000000000000000000000
cin.get();
}