<?php class A { } class B { function __construct($a) { } } class C extends B { function __construct(A $a) { parent::__construct($a); } } $a = new A(); $b = new B($a); $c = new C($a);
You have javascript disabled. You will not be able to edit any code.