text: #include<iostream>
  using namespace std;
  
  class People
  {
  public:
      People(char* name, int age, char* id):m_name(name),m_age(age),m_id(id){}
      void show() {cout<< m_id<<" "<<m_name<<" "<<m_age<<endl;}
  // private 派生类不能访问
  protected:
      char* m_name;
      int   m_age;
      char* m_id;
  };
  class Student: public People
  {
  public:
      // 基类初始化,Student(args...):People(args...),my(m_my);
      Student(char* name, int age, char* id, int score):People(name, age, id),m_score(score){}
      void show(){cout<< m_id<<" "<<m_name<<" "<<m_age<<" "<<m_score<<endl;}
  private:
      int m_score;
  };
  class Police: private People
  {
  public:
      Police(char* name, int age, char* id, int level):People(name, age, id),m_level(level){}
      void show(){cout<< m_id<<" "<<m_name<<" "<<m_age<<" "<<m_level<<endl;}
  private:
      int m_level;
  };
  int main()
  {
      Student st("xiaoming", 12, "0001", 67);
      st.show();   // 名字遮掩
      st.People::show();
      cout<<endl;
      Police pc("police", 46, "0002", 1);
      pc.show();
      // pc.People::show();  // private 继承，不能访问
      return 0;
  }
  
  
  