title: PHP inhertience method referencing
body: <pre><code>&lt;?php
  class A {
      private function foo() {
          echo "baf!&lt;br/&gt;";
      }
      public function test() {
          $this-&gt;foo();
  
      }
  }
  
  
  class C extends A {
      private function foo() {
          echo "bar!&lt;br/&gt;";
      }
  
  }
  
  $c = new C();
  $c-&gt;test();  //Prints baf!
  ?&gt; 
  </code></pre>
  
  <p>How to make <code>c-&gt;test()</code> to print bar! ? I was expecting that <code>foo()</code> will be overridden in <code>C</code> and would print bar! can someone explain it to me?</p>