|
|
@ -12,7 +12,7 @@ class mybase {
|
|
|
|
: ids(ids) {}
|
|
|
|
: ids(ids) {}
|
|
|
|
|
|
|
|
|
|
|
|
virtual void foo() {
|
|
|
|
virtual void foo() {
|
|
|
|
std::cout << "i'm a mybase! ids: " << this->ids << std::endl;
|
|
|
|
std::cout << "i'm a mybase! ids: " << ids << std::endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -24,7 +24,7 @@ class myclass : public mybase {
|
|
|
|
: mybase(ids) {}
|
|
|
|
: mybase(ids) {}
|
|
|
|
|
|
|
|
|
|
|
|
void foo() {
|
|
|
|
void foo() {
|
|
|
|
std::cout << "i'm a myclass! ids: " << this->ids << std::endl;
|
|
|
|
std::cout << "i'm a myclass! ids: " << ids << std::endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|