#include <iostream>

using namespace std;

class A {
  public:
    int x, y, z;
  protected:
    int set(int);
    int get();
    int update(int);
  private:
    int h;
};

class B : private A {
  public:
    using A::x;
  protected:
    using A::y;
    using A::get;
    using A::update;
};

int main() {
    B b;
    
    b.x = 0;  // accessible - public
//    b.y = 0;  // inaccessible - protected 
//    b.z = 0;  // inaccessible - private
    
//    b.set(1); // inaccessible - private
//    b.get();  // inaccessible - protected
}
