<?php class TestParent { public $foo = 'foo'; } class Test extends TestParent { public function __construct() { parent::$this->foo='bar'; } } $obj = new Test(); var_dump($obj);
You have javascript disabled. You will not be able to edit any code.