#include <iostream>
using std::cout;
using std::endl;
class Base {
int a, b;
public:
Base(int _a, int _b) {
a = _a;
b = _b;
}
void print_base() {
cout << a << ' ' << b << endl;
}
};
class Derived : public Base {
int c;
public:
Derived(int _c, int _a, int _b) : Base(_a, _b) {
c = _c;
}
void print_derived() {
cout << c << ' ';
print_base();
}
};
int main()
{
Derived o(189, 25, 17);
o.print_derived();
return 0;
}
/*
run:
189 25 17
*/