Use method of parent class when extending
<p>Probably a silly question.. but how do I correctly use the methods of class Test in class Testb without overriding them?</p>

<pre><code>&lt;?php
class Test {

    private $name;

    public function __construct($name) {
        $this-&gt;name = $name;
    }

    public function getName() {
        return $this-&gt;name;
    }

}

&lt;?php

class Testb extends Test {

    public function __construct() {
        parent::__construct($name);
    }

}

&lt;?php

include('test.php');
include('testb.php');

$a = new Test('John');
$b = new Testb('Batman');

echo $b-&gt;getName();
</code></pre>
