title: C++ Class Design/ Excluding Base Class members
body: <p>Assuming I just created a class named Base with 2 or 3 Members, that's about this:</p>
  <pre><code>class Base
  {
  private:
      std::string name;
      std::string  number;
  public:
      virtual std::string  get() const;
      virtual void set();
  //...
  };
  </code></pre>
  <p>And in the next step I want to create a few derived classes form this class. But in some of the derived classes I don't need all members of the Base class.</p>
  <p>How can I exclude some members of Base-class in a derived class and keep the others?</p>
  <p>For Instance in:</p>
  <pre><code>class Derived_One : public Base {
  private:
      std::string wight;
      int A;
  public:
      //...
  };
  </code></pre>
  <p>I want to keep only the first attribute of the Base Class (<code>std::string name</code>) and remove the second attribute which is <code>std::string number</code>. How can I exclude it in the derived class <code>Drive_One</code>?</p>
  <p>I am looking for an elegant solution for this change or a widely known Design Pattern which I do not know yet.</p>