title: Is friendship inherited in C++?
body: <p>Suppose I have a <code>Base</code> class:</p>
  
  <pre><code>class Base {
      friend SomeOtherClass;
  };
  </code></pre>
  
  <p>And there is another (different) class that inherits from <code>Base</code>:</p>
  
  <pre><code>class AnotherClass : public Base {}
  </code></pre>
  
  <p>Is friendship inherited as well?</p>