#include <iostream>

using namespace std;

class A {
  public:
    int x, y, z;
  protected:
    int set(int ax) { return this->x = ax; };
    int get();
    int update(int);
  private:
    int h;
};

class B : protected A {
  public:
    int w;
    void test() { this->x = 7; this->set(7); }

    int set(int ax) { return A::set(ax); };

};

int main() {
    A a;
    B b;
    
    a.x = 0;
    b.x = 0;  
    b.w = 1;


    
    b.set(1); 

}
