<?php class C { protected $test = 0; } class B extends C { public function __construct() { $this->test = 100; } } class A extends B { } $a = new A; var_dump($a->test);
You have javascript disabled. You will not be able to edit any code.