class a {
protected:
int x;
public:
a(int);
};
a::a(int _x) {
x = _x;
}
class b : public a {
protected:
int y;
public:
b(int, int);
int get_y() {
return y;
}
};
b::b(int _x, int _y) : a(_x) {
y = _y;
}
class c : public b {
private:
int z;
public:
c(int, int, int);
void chng_y(b *member_b) {
y = get_y()->member_b;
}
};
c::c(int _x, int _y, int _z) : b(_x, _y) {
z = _z;
}
int main()
{
return 0;
}