<?php class Foo { private $id = 1; public function getId() { return $this->id; } } class Bar extends Foo { public $id = 2; } $bar = new Bar(); var_dump($bar);
You have javascript disabled. You will not be able to edit any code.