<?php class foo { private $a = 1; } class bar extends foo { private $a = 2; } class baz extends bar { public $a = 3; } $a = new baz(); var_dump($a);
You have javascript disabled. You will not be able to edit any code.