title: PHP: Class extends problem "Call to private method ... from context ..."
body: <p>I have 3 classes in WordPress (the question itself is unrelated to it):</p>
  
  <pre><code>class WP_Widget
  
  class Theme_Widget extends WP_Widget
  
  class Specific_Widget extends Theme_Widget
  </code></pre>
  
  <p>Essentially Theme_Widget contains some extension functions to the basic WP_Widget. </p>
  
  <p>Inside Specific_Widget I call one of Theme_Widget's methods:</p>
  
  <pre><code>class Specific_Widget {
  
      function __construct() {
           $this-&gt;some_method_that_belongs_to_Theme_Widget();
      }
  }
  </code></pre>
  
  <p>When I instantiate Specific_Widget, PHP throws a fatal error as follows:</p>
  
  <pre><code>Fatal error: Call to private method Theme_Widget::some_method_that_belongs_to_Theme_Widget() from context 'Specific_Widget' in ...
  </code></pre>
  
  <p>Do you have an idea as to how I can resolve this? This is the first time I've received this error from PHP. Could it be derive from WordPress itself?</p>