function bmethod() { $this->aprop = "the current instance"; aclass::aclass(); aclass::amethod(); // We want to disagree with PHP in this case. // notparent::nmethod(); }
function __construct() { print "Constructor of bclass called\n"; parent::aclass(); parent::__construct(); }